mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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>
This commit is contained in:
parent
1adf719b2d
commit
b8cdfac353
10 changed files with 177 additions and 15 deletions
|
@ -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"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue