mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Some last minute tweaks - type fixes from Stefan and win32 temp files
from Timo.
This commit is contained in:
parent
184f9e5739
commit
2a53bb0e24
4 changed files with 40 additions and 11 deletions
|
@ -56,6 +56,9 @@ static int make_tempdir(struct exec_info *info)
|
|||
{
|
||||
#ifdef __riscos__
|
||||
tmp="<Wimp$ScrapDir>";
|
||||
#elsif HAVE_DOSISH_SYSTEM
|
||||
tmp=m_alloc(1024);
|
||||
GetTempPath(1023,tmp);
|
||||
#else
|
||||
tmp="/tmp";
|
||||
#endif
|
||||
|
@ -67,6 +70,10 @@ static int make_tempdir(struct exec_info *info)
|
|||
|
||||
sprintf(info->tempdir,"%s" DIRSEP_S "gpg-XXXXXX",tmp);
|
||||
|
||||
#ifdef HAVE_DOSISH_SYSTEM
|
||||
m_free(tmp);
|
||||
#endif
|
||||
|
||||
if(mkdtemp(info->tempdir)==NULL)
|
||||
log_error(_("%s: can't create directory: %s\n"),
|
||||
info->tempdir,strerror(errno));
|
||||
|
@ -189,7 +196,7 @@ static int expand_args(struct exec_info *info,const char *args_in)
|
|||
|
||||
/* The rules are: if there are no args, then it's a fork/exec/pipe.
|
||||
If there are args, but no tempfiles, then it's a fork/exec/pipe via
|
||||
bash -c. If there are tempfiles, then it's a system. */
|
||||
shell -c. If there are tempfiles, then it's a system. */
|
||||
|
||||
int exec_write(struct exec_info **info,const char *program,
|
||||
const char *args_in,int writeonly,int binary)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue