diff options
author | Sami Kerola | 2015-01-07 22:30:54 +0100 |
---|---|---|
committer | Sami Kerola | 2015-01-07 22:57:53 +0100 |
commit | 97d8f180b6af194004ef29ddb9a644c8e1fb079e (patch) | |
tree | afbeadaa68deecb61cee4ade5bbbb895b7fb73ec /text-utils/ul.c | |
parent | look: remove dead code (diff) | |
download | kernel-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.c | 9 |
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) { |