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 f1779923a..d991c857c 100644
--- a/tools/gpgconf.c
+++ b/tools/gpgconf.c
@@ -903,7 +903,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 delet
* socket files. */
@@ -929,7 +929,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));
}