summaryrefslogtreecommitdiffstats
path: root/text-utils/ul.c
diff options
context:
space:
mode:
authorSami Kerola2015-01-07 22:30:54 +0100
committerSami Kerola2015-01-07 22:57:53 +0100
commit97d8f180b6af194004ef29ddb9a644c8e1fb079e (patch)
treeafbeadaa68deecb61cee4ade5bbbb895b7fb73ec /text-utils/ul.c
parentlook: remove dead code (diff)
downloadkernel-qcow2-util-linux-97d8f180b6af194004ef29ddb9a644c8e1fb079e.tar.gz
kernel-qcow2-util-linux-97d8f180b6af194004ef29ddb9a644c8e1fb079e.tar.xz
kernel-qcow2-util-linux-97d8f180b6af194004ef29ddb9a644c8e1fb079e.zip
ul: remove unexplained TERM=lpr override
The FIXME item has been in place since 2011-04-30, and the code has never made sense, so remove it. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'text-utils/ul.c')
-rw-r--r--text-utils/ul.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/text-utils/ul.c b/text-utils/ul.c
index 30cad791d..7765b571e 100644
--- a/text-utils/ul.c
+++ b/text-utils/ul.c
@@ -174,15 +174,6 @@ int main(int argc, char **argv)
termtype = getenv("TERM");
- /*
- * FIXME: why terminal type is lpr when command begins with c and has
- * no terminal? If this behavior can be explained please insert
- * reference or remove the code. In case this truly is desired command
- * behavior this should be mentioned in manual page.
- */
- if (termtype == NULL || (argv[0][0] == 'c' && !isatty(STDOUT_FILENO)))
- termtype = "lpr";
-
while ((c = getopt_long(argc, argv, "it:T:Vh", longopts, NULL)) != -1)
switch (c) {