mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Properly close files opened by es_fopen.
Allow setting of an empty passphrase. Assorted W32 changes.
This commit is contained in:
parent
5f97dd2c44
commit
bce4ea798a
9 changed files with 65 additions and 23 deletions
|
@ -1,3 +1,7 @@
|
|||
2007-07-16 Werner Koch <wk@g10code.com>
|
||||
|
||||
* estream.c (es_func_file_create): Clear NO_CLOSE flag.
|
||||
|
||||
2007-07-12 Werner Koch <wk@g10code.com>
|
||||
|
||||
* sysutils.h (gnupg_fd_t): New.
|
||||
|
|
|
@ -861,6 +861,7 @@ es_func_file_create (void **cookie, int *filedes,
|
|||
#endif
|
||||
|
||||
file_cookie->fd = fd;
|
||||
file_cookie->no_close = 0;
|
||||
*cookie = file_cookie;
|
||||
*filedes = fd;
|
||||
|
||||
|
|
|
@ -358,10 +358,7 @@ gnupg_spawn_process (const char *pgmname, const char *argv[],
|
|||
if (x == -1)
|
||||
log_error ("failed to translate osfhandle %p\n", (void*)rp[0] );
|
||||
else
|
||||
{
|
||||
log_debug ("_open_osfhandle %p yields %d\n", (void*)fd, x );
|
||||
*statusfile = fdopen (x, "r");
|
||||
}
|
||||
*statusfile = fdopen (x, "r");
|
||||
}
|
||||
if (!*statusfile)
|
||||
{
|
||||
|
|
|
@ -327,9 +327,6 @@ agent_open (int *rfd)
|
|||
{
|
||||
#ifdef SPWQ_USE_LOGGING
|
||||
log_error ( _("malformed GPG_AGENT_INFO environment variable\n"));
|
||||
log_debug ( "a='%s'\n", infostr);
|
||||
log_debug ( "a='%s'\n", strchr ( infostr, PATHSEP_C));
|
||||
log_debug ( "a=%td\n", (p-infostr));
|
||||
#endif
|
||||
return SPWQ_NO_AGENT;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue