[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.24 and 1.25

version 1.24, 2015/10/10 22:06:41 version 1.25, 2015/10/11 23:29:56
Line 77 
Line 77 
         if (pledge("stdio rpath getpw tty", NULL) == -1)          if (pledge("stdio rpath getpw tty", NULL) == -1)
                 err(1, "pledge");                  err(1, "pledge");
   
         mytty = ttyname(0);          if (mytty = ttyname(0)) {
         /* strip any directory component */                  /* strip any directory component */
         if ((t = strrchr(mytty, '/')))                  if ((t = strrchr(mytty, '/')))
                 mytty = t + 1;                          mytty = t + 1;
           }
   
         only_current_term = show_term = show_idle = show_labels = 0;          only_current_term = show_term = show_idle = show_labels = 0;
         show_quick = 0;          show_quick = 0;

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25