diff options
author | Eduardo Chappa <chappa@washington.edu> | 2017-05-04 22:18:35 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2017-05-04 22:18:35 -0600 |
commit | 65dea5ff595b089c5d46131381f01d84b7dfd79a (patch) | |
tree | 6164e02d0b1cb667430ff0a0fa9157b44a8977c7 /alpine | |
parent | 8f8122b0ec2d9a73b42bd0bc21781cc7fa95a1e2 (diff) | |
download | alpine-65dea5ff595b089c5d46131381f01d84b7dfd79a.tar.xz |
* Creating key for password file could not be cancelled.
Diffstat (limited to 'alpine')
-rw-r--r-- | alpine/smime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alpine/smime.c b/alpine/smime.c index 0bdfd332..43000385 100644 --- a/alpine/smime.c +++ b/alpine/smime.c @@ -1286,7 +1286,7 @@ manage_certs_tool(struct pine *ps, int cmd, CONF_S **cl, unsigned flags) pathdir, MASTERNAME); filename[sizeof(filename)-1] = '\0'; rv = import_certificate(ctype, pc, filename); - if(our_stat(pathdir, &sbuf) == 0){ + if(rv == 1 && our_stat(pathdir, &sbuf) == 0){ if(unlink(filename) < 0) q_status_message1(SM_ORDER, 0, 2, _("Could not remove private key %s.key"), MASTERNAME); @@ -1294,7 +1294,7 @@ manage_certs_tool(struct pine *ps, int cmd, CONF_S **cl, unsigned flags) strcat(filename, ".crt"); if(unlink(filename) < 0) q_status_message1(SM_ORDER, 0, 2, - _("Could not remove public certifica %s.crt"), MASTERNAME); + _("Could not remove public certificate %s.crt"), MASTERNAME); if(rmdir(pathdir) < 0) q_status_message1(SM_ORDER, 0, 2, _("Could not remove temporary directory %s"), pathdir); |