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

Diff for /src/usr.bin/who/who.c between version 1.28 and 1.29

version 1.28, 2018/08/08 22:55:14 version 1.29, 2020/08/27 15:20:31
Line 124 
Line 124 
   
         if (unveil(_PATH_UTMP, "r") == -1)          if (unveil(_PATH_UTMP, "r") == -1)
                 err(1, "unveil");                  err(1, "unveil");
           if (show_term || show_idle) {
                   if (unveil(_PATH_DEV, "r") == -1)
                           err(1, "unveil");
           }
         switch (argc) {          switch (argc) {
         case 0:                                 /* who */          case 0:                                 /* who */
                 if (pledge("stdio rpath getpw", NULL) == -1)                  if (pledge("stdio rpath getpw", NULL) == -1)

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29