aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tdbio.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/tdbio.c')
-rw-r--r--g10/tdbio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/tdbio.c b/g10/tdbio.c
index c364cb582..f967742c3 100644
--- a/g10/tdbio.c
+++ b/g10/tdbio.c
@@ -539,7 +539,7 @@ tdbio_set_dbname( const char *new_dbname, int create )
oldmask=umask(077);
if (is_secured_filename (fname)) {
fp = NULL;
- errno = EPERM;
+ gpg_err_set_errno (EPERM);
}
else
fp =fopen( fname, "wb" );