]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
ul: remove unexplained TERM=lpr override
authorSami Kerola <kerolasa@iki.fi>
Wed, 7 Jan 2015 21:30:54 +0000 (21:30 +0000)
committerSami Kerola <kerolasa@iki.fi>
Wed, 7 Jan 2015 21:57:53 +0000 (21:57 +0000)
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>
text-utils/ul.c

index 30cad791dd3f35874e18e1e89ce891fda709500f..7765b571e660c7c303d8085fe5ac091d683bdbe5 100644 (file)
@@ -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) {