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

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

version 1.50, 2019/09/14 17:47:00 version 1.51, 2021/07/12 15:09:19
Line 95 
Line 95 
         char *extra = NULL;     /* Store login class or number of rounds */          char *extra = NULL;     /* Store login class or number of rounds */
         const char *errstr;          const char *errstr;
   
         if (unveil(_PATH_LOGIN_CONF, "r") == -1 ||          if (unveil(_PATH_LOGIN_CONF, "r") == -1)
             unveil(_PATH_LOGIN_CONF ".db", "r") == -1)                  err(1, "unveil %s", _PATH_LOGIN_CONF);
                 err(1, "unveil");          if (unveil(_PATH_LOGIN_CONF ".db", "r") == -1)
                   err(1, "unveil %s.db", _PATH_LOGIN_CONF);
         if (pledge("stdio rpath tty", NULL) == -1)          if (pledge("stdio rpath tty", NULL) == -1)
                 err(1, "pledge");                  err(1, "pledge");
   

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