diff options
Diffstat (limited to 'g10/keyring.c')
-rw-r--r-- | g10/keyring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/keyring.c b/g10/keyring.c index 6ed9e2b41..8c31ccc87 100644 --- a/g10/keyring.c +++ b/g10/keyring.c @@ -1371,7 +1371,7 @@ rename_tmp_file (const char *bakfname, const char *tmpfname, const char *fname) statbuf.st_mode=S_IRUSR | S_IWUSR; - if (!stat (bakfname, &statbuf) && !chmod (fname, statbuf.st_mode)) + if (!gnupg_stat (bakfname, &statbuf) && !chmod (fname, statbuf.st_mode)) ; else log_error ("WARNING: unable to restore permissions to '%s': %s", |