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

Diff for /src/usr.bin/lock/lock.c between version 1.25 and 1.26

version 1.25, 2009/10/27 23:59:39 version 1.26, 2010/06/13 15:26:06
Line 135 
Line 135 
         timeout.tv_sec = sectimeout * 60;          timeout.tv_sec = sectimeout * 60;
   
         gethostname(hostname, sizeof(hostname));          gethostname(hostname, sizeof(hostname));
           if (usemine && lc == NULL)
                   errx(1, "login class not found");
         if (!(ttynam = ttyname(STDIN_FILENO)))          if (!(ttynam = ttyname(STDIN_FILENO)))
                 errx(1, "not a terminal?");                  errx(1, "not a terminal?");
         curtime = time(NULL);          curtime = time(NULL);

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