diff options
Diffstat (limited to 'g13')
-rw-r--r-- | g13/be-encfs.c | 3 | ||||
-rw-r--r-- | g13/mount.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/g13/be-encfs.c b/g13/be-encfs.c index 265b4c2bc..f59f4d947 100644 --- a/g13/be-encfs.c +++ b/g13/be-encfs.c @@ -30,6 +30,7 @@ #include "keyblob.h" #include "be-encfs.h" #include "runner.h" +#include "../common/sysutils.h" #include "../common/exechelp.h" @@ -415,7 +416,7 @@ be_encfs_create_container (ctrl_t ctrl, const char *fname, tupledesc_t tuples, err = gpg_error_from_syserror (); goto leave; } - if (!mkdtemp (mountpoint)) + if (!gnupg_mkdtemp (mountpoint)) { err = gpg_error_from_syserror (); log_error (_("can't create directory '%s': %s\n"), diff --git a/g13/mount.c b/g13/mount.c index 512e29d1a..fc640e0ee 100644 --- a/g13/mount.c +++ b/g13/mount.c @@ -33,6 +33,7 @@ #include "keyblob.h" #include "backend.h" #include "utils.h" +#include "../common/sysutils.h" #include "call-gpg.h" #include "mountinfo.h" #include "runner.h" @@ -260,7 +261,7 @@ g13_mount_container (ctrl_t ctrl, const char *filename, const char *mountpoint) mountpoint_buffer = xtrystrdup ("/tmp/g13-XXXXXX"); if (!mountpoint_buffer) return gpg_error_from_syserror (); - if (!mkdtemp (mountpoint_buffer)) + if (!gnupg_mkdtemp (mountpoint_buffer)) { err = gpg_error_from_syserror (); log_error (_("can't create directory '%s': %s\n"), |