aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/ChangeLog4
-rw-r--r--common/sysutils.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/common/ChangeLog b/common/ChangeLog
index 9e6956370..b4c79e234 100644
--- a/common/ChangeLog
+++ b/common/ChangeLog
@@ -1,3 +1,7 @@
+2010-08-12 Werner Koch <[email protected]>
+
+ * sysutils.c (gnupg_remove) [W32CE]: Fix returned error.
+
2010-08-09 Werner Koch <[email protected]>
* logging.c (WITH_IPV6): New macro.
diff --git a/common/sysutils.c b/common/sysutils.c
index 82d9959d8..b75c5e1e5 100644
--- a/common/sysutils.c
+++ b/common/sysutils.c
@@ -530,8 +530,8 @@ gnupg_remove (const char *fname)
xfree (wfname);
}
if (!rc)
- gpg_err_set_errno (EIO);
- return !rc;
+ return -1; /* ERRNO is automagically provided by gpg-error.h. */
+ return 0;
#else
return remove (fname);
#endif