version 1.28, 2001/06/20 22:25:08 |
version 1.29, 2001/06/23 22:29:14 |
|
|
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()); |
|
|
|
|
/* 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"); |