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

Diff for /src/usr.bin/last/last.c between version 1.50 and 1.51

version 1.50, 2015/10/29 03:00:31 version 1.51, 2018/08/03 15:01:28
Line 98 
Line 98 
         const char *errstr;          const char *errstr;
         int ch, lastch = '\0', newarg = 1, prevoptind = 1;          int ch, lastch = '\0', newarg = 1, prevoptind = 1;
   
         if (pledge("stdio rpath", NULL) == -1)  
                 err(1, "pledge");  
   
         while ((ch = getopt(argc, argv, "0123456789cf:h:n:st:d:T")) != -1) {          while ((ch = getopt(argc, argv, "0123456789cf:h:n:st:d:T")) != -1) {
                 switch (ch) {                  switch (ch) {
                 case '0': case '1': case '2': case '3': case '4':                  case '0': case '1': case '2': case '3': case '4':
Line 154 
Line 151 
         }          }
         if (maxrec == 0)          if (maxrec == 0)
                 exit(0);                  exit(0);
   
           if (unveil(file, "r") == -1)
                   err(1, "unveil");
           if (pledge("stdio rpath", NULL) == -1)
                   err(1, "pledge");
   
         if (argc) {          if (argc) {
                 setvbuf(stdout, NULL, _IOLBF, 0);                  setvbuf(stdout, NULL, _IOLBF, 0);

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51