diff options
author | Werner Koch <[email protected]> | 2002-10-21 16:32:10 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-10-21 16:32:10 +0000 |
commit | 4b2cd72c24110ed6259e41fb35ab38681a692ec5 (patch) | |
tree | 10c875724c365b0c6309bb763969f9ef2b9e112a | |
parent | * util.h [__CYGWIN32__]: Don't need the registry prototypes. (diff) | |
download | gnupg-4b2cd72c24110ed6259e41fb35ab38681a692ec5.tar.gz gnupg-4b2cd72c24110ed6259e41fb35ab38681a692ec5.zip |
* secmem.c (lock_pool) [__CYGWIN__]: Don't print secmem warning.
* iobuf.c (direct_open): Handle mode 'b' if O_BINARY is available.
-rw-r--r-- | util/ChangeLog | 6 | ||||
-rw-r--r-- | util/iobuf.c | 4 | ||||
-rw-r--r-- | util/secmem.c | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index 63f9df337..5d4cb7de9 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,9 @@ +2002-10-21 Werner Koch <[email protected]> + + * secmem.c (lock_pool) [__CYGWIN__]: Don't print secmem warning. + + * iobuf.c (direct_open): Handle mode 'b' if O_BINARY is available. + 2002-09-16 Werner Koch <[email protected]> * w32reg.c (read_w32_registry_string): Fallback to HLM. diff --git a/util/iobuf.c b/util/iobuf.c index a3e9ad3e6..953d9f3df 100644 --- a/util/iobuf.c +++ b/util/iobuf.c @@ -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 diff --git a/util/secmem.c b/util/secmem.c index 90fffd505..d4eecbb3e 100644 --- a/util/secmem.c +++ b/util/secmem.c @@ -179,7 +179,7 @@ lock_pool( void *p, size_t n ) * wipes out the memory on a free(). * Therefore it is sufficient to suppress the warning */ - #elif defined (HAVE_DOSISH_SYSTEM) + #elif defined (HAVE_DOSISH_SYSTEM) || defined (__CYGWIN__) /* It does not make sense to print such a warning, given the fact that * this whole Windows !@#$% and their user base are inherently insecure */ |