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

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

version 1.28, 2001/06/20 22:25:08 version 1.29, 2001/06/23 22:29:14
Line 188 
Line 188 
                 case 0:                  case 0:
                         /* comment out user if asked to */                          /* comment out user if asked to */
                         if (zerokey)                          if (zerokey)
                                 exit(skeyzero(&skey, pp->pw_name));                                  exit(skeyzero(&skey));
   
                         (void)printf("[Updating %s with %s]\n", pp->pw_name,                          (void)printf("[Updating %s with %s]\n", pp->pw_name,
                             ht ? ht : skey_get_algorithm());                              ht ? ht : skey_get_algorithm());
Line 276 
Line 276 
   
                 /* If new entry is longer than the old, comment out the old. */                  /* If new entry is longer than the old, comment out the old. */
                 if (nlen > skey.len) {                  if (nlen > skey.len) {
                         (void)skeyzero(&skey, pp->pw_name);                          (void)skeyzero(&skey);
                         /* Re-open keys file and seek to the end */                          /* Re-open keys file and seek to the end */
                         if (skeylookup(&skey, pp->pw_name) == -1)                          if (skeylookup(&skey, pp->pw_name) == -1)
                                 err(1, "cannot reopen database");                                  err(1, "cannot reopen database");

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