aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpgconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpgconf.c')
-rw-r--r--tools/gpgconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gpgconf.c b/tools/gpgconf.c
index b4ffa1ab8..1a99c9844 100644
--- a/tools/gpgconf.c
+++ b/tools/gpgconf.c
@@ -925,7 +925,7 @@ main (int argc, char **argv)
log_info ("ignoring request to remove non /run/user socket dir\n");
else if (opt.dry_run)
;
- else if (rmdir (socketdir))
+ else if (gnupg_rmdir (socketdir))
{
/* If the director is not empty we first try to delete
* socket files. */
@@ -952,7 +952,7 @@ main (int argc, char **argv)
gnupg_remove (p);
xfree (p);
}
- if (rmdir (socketdir))
+ if (gnupg_rmdir (socketdir))
gc_error (1, 0, "error removing '%s': %s",
socketdir, gpg_strerror (err));
}