diff options
author | Werner Koch <wk@gnupg.org> | 2014-11-11 15:14:31 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2014-11-11 15:14:31 +0100 |
commit | b8cdfac353ad96d4ef025c066c16dbde34805661 (patch) | |
tree | f26e4c6589c0dfc0bb8ff25b645262eb05d24677 /g10/exec.c | |
parent | Remove use of gnulib (part 1) (diff) | |
download | gnupg2-b8cdfac353ad96d4ef025c066c16dbde34805661.tar.xz gnupg2-b8cdfac353ad96d4ef025c066c16dbde34805661.zip |
Remove use of gnulib (part 2)
* configure.ac (strpbrk): Add to AC_CHECK_FUNCS.
(gl_EARLY): Remove.
* common/stringhelp.c (strpbrk) [!HAVE_STRPBRK]: New.
* common/sysutils.c (gnupg_mkdtemp): New. Based on code from
glibc-2.6.
(gnupg_setenv): Rewrite.
(gnupg_unsetenv): Rewrite.
* g10/exec.c: Include sysutils.h and replace mkdtemp by gnupg_mkdtemp.
* g13/be-encfs.c: Ditto.
* g13/mount.c: Ditto.
* tools/symcryptrun.c (confucius_mktmpdir): Ditto.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/exec.c')
-rw-r--r-- | g10/exec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/exec.c b/g10/exec.c index 5bcfc2e17..0194e9d90 100644 --- a/g10/exec.c +++ b/g10/exec.c @@ -49,6 +49,7 @@ #include "iobuf.h" #include "util.h" #include "membuf.h" +#include "sysutils.h" #include "exec.h" #ifdef NO_EXEC @@ -194,7 +195,7 @@ make_tempdir(struct exec_info *info) xfree(tmp); #endif - if(mkdtemp(info->tempdir)==NULL) + if (!gnupg_mkdtemp(info->tempdir)) log_error(_("can't create directory '%s': %s\n"), info->tempdir,strerror(errno)); else |