version 1.70, 2004/05/08 00:21:31 |
version 1.70.2.2, 2005/09/02 03:45:00 |
|
|
/* clear passphrase since it did not work */ |
/* clear passphrase since it did not work */ |
clear_pass(); |
clear_pass(); |
snprintf(msg, sizeof msg, "Enter passphrase for %.200s: ", |
snprintf(msg, sizeof msg, "Enter passphrase for %.200s: ", |
comment); |
comment); |
for (;;) { |
for (;;) { |
pass = read_passphrase(msg, RP_ALLOW_STDIN); |
pass = read_passphrase(msg, RP_ALLOW_STDIN); |
if (strcmp(pass, "") == 0) { |
if (strcmp(pass, "") == 0) { |
|
|
goto done; |
goto done; |
} |
} |
|
|
for(i = 0; default_files[i]; i++) { |
for (i = 0; default_files[i]; i++) { |
snprintf(buf, sizeof(buf), "%s/%s", pw->pw_dir, |
snprintf(buf, sizeof(buf), "%s/%s", pw->pw_dir, |
default_files[i]); |
default_files[i]); |
if (stat(buf, &st) < 0) |
if (stat(buf, &st) < 0) |
|
|
if (count == 0) |
if (count == 0) |
ret = 1; |
ret = 1; |
} else { |
} else { |
for(i = 0; i < argc; i++) { |
for (i = 0; i < argc; i++) { |
if (do_file(ac, deleting, argv[i]) == -1) |
if (do_file(ac, deleting, argv[i]) == -1) |
ret = 1; |
ret = 1; |
} |
} |