aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Bellon <[email protected]>2002-01-02 17:50:37 +0000
committerStefan Bellon <[email protected]>2002-01-02 17:50:37 +0000
commite9fad52a8d32ab476263c614870c732743eb3e73 (patch)
treedf6c17b6f940a75521efdba1961c3c94b88d6967
parentupdated RISC OS specific files (diff)
downloadgnupg-e9fad52a8d32ab476263c614870c732743eb3e73.tar.gz
gnupg-e9fad52a8d32ab476263c614870c732743eb3e73.zip
invalidate close cache
-rw-r--r--g10/exec.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/g10/exec.c b/g10/exec.c
index 840b70307..55a808546 100644
--- a/g10/exec.c
+++ b/g10/exec.c
@@ -447,12 +447,17 @@ int exec_finish(struct exec_info *info)
}
#endif
- if(info->fromchild)
+ if(info->fromchild) {
iobuf_close(info->fromchild);
+#ifdef __riscos__
+ /* invalidate close cache, as otherwise unlink() below won't work */
+ iobuf_ioctl(NULL, 2, 0, info->tempfile_out);
+#endif
+ }
if(info->tochild)
fclose(info->tochild);
-
+
if(info->madedir && !info->keep_temp_files)
{
if(info->tempfile_in)