[BACK]Return to ul.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ul

Diff for /src/usr.bin/ul/ul.c between version 1.18 and 1.19

version 1.18, 2015/02/08 23:40:34 version 1.19, 2015/10/10 16:15:03
Line 98 
Line 98 
         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";

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19