summaryrefslogtreecommitdiff
path: root/pith/smime.c
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2015-09-06 10:02:20 -0600
committerEduardo Chappa <chappa@washington.edu>2015-09-06 10:02:20 -0600
commit8ca41ab99d2ebe7244e8da672e8bd5764d18639c (patch)
treedeff402aa65a733f54c74af2ea3f12dc02095626 /pith/smime.c
parenta433ae52981e7eb9dc5a90a3afc25f53bc782032 (diff)
downloadalpine-8ca41ab99d2ebe7244e8da672e8bd5764d18639c.tar.xz
* S/MIME: transferring certificates failed to remove temporary files.
Diffstat (limited to 'pith/smime.c')
-rw-r--r--pith/smime.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/pith/smime.c b/pith/smime.c
index 40e8d671..a4e401eb 100644
--- a/pith/smime.c
+++ b/pith/smime.c
@@ -1691,8 +1691,16 @@ copy_dir_to_container(WhichCerts which, char *contents)
} /* if(!ret) */
}
- if(tempfile)
+ if(tempfile){
+ if(ret == 0){
+ if(our_unlink(tempfile) < 0)
+ q_status_message1(SM_ORDER, 3, 3,
+ _("Error removing temporary file %s"), tempfile);
+ } else
+ q_status_message1(SM_ORDER, 3, 3,
+ _("Data saved to temporary file %s"), tempfile);
fs_give((void **) &tempfile);
+ }
if(ret_dir)
fs_give((void **) &ret_dir);