Return to ul.c CVS log | Up to [local] / src / usr.bin / ul |
version 1.18, 2015/02/08 23:40:34 | version 1.19, 2015/10/10 16:15:03 | ||
---|---|---|---|
|
|
||
FILE *f; | FILE *f; | ||
char termcap[1024]; | char termcap[1024]; | ||
if (pledge("stdio rpath tty", NULL) == -1) | |||
err(1, "pledge"); | |||
termtype = getenv("TERM"); | termtype = getenv("TERM"); | ||
if (termtype == NULL || (argv[0][0] == 'c' && !isatty(1))) | if (termtype == NULL || (argv[0][0] == 'c' && !isatty(1))) | ||
termtype = "lpr"; | termtype = "lpr"; |