mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* w32reg.c (read_w32_registry_string): Fixed expanding of the environment
buffer; didn't worked at all. Reported by Thijmen Klok. From Werner on stable branch. * secmem.c (secmem_free, secmem_term): Use wipememory2() instead of memset() to overwrite secure memory * iobuf.c (direct_open): Handle mode 'b' if O_BINARY is available. From Werner on stable branch. * fileutil.c: Comment from stable branch.
This commit is contained in:
parent
d941240b45
commit
d771dd272d
5 changed files with 31 additions and 12 deletions
|
@ -208,6 +208,10 @@ direct_open (const char *fname, const char *mode)
|
|||
else {
|
||||
oflag = O_RDONLY;
|
||||
}
|
||||
#ifdef O_BINARY
|
||||
if (strchr (mode, 'b'))
|
||||
oflag |= O_BINARY;
|
||||
#endif
|
||||
#ifndef __riscos__
|
||||
return open (fname, oflag, cflag );
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue