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

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

version 1.18, 2015/10/07 03:49:41 version 1.19, 2015/10/09 01:37:09
Line 61 
Line 61 
         int ch, first;          int ch, first;
         char *p;          char *p;
   
         if (tame("stdio rpath", NULL) == -1)          if (pledge("stdio rpath", NULL) == -1)
                 err(1, "tame");                  err(1, "pledge");
   
         /*          /*
          * Tail's options are weird.  First, -n10 is the same as -n-10, not           * Tail's options are weird.  First, -n10 is the same as -n-10, not
Line 174 
Line 174 
                         (void)fclose(fp);                          (void)fclose(fp);
                 }                  }
         else {          else {
                 if (tame("stdio", NULL) == -1)                  if (pledge("stdio", NULL) == -1)
                         err(1, "tame");                          err(1, "pledge");
   
                 fname = "stdin";                  fname = "stdin";
                 is_stdin = 1;                  is_stdin = 1;

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