1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

* secmem.c (lock_pool) [__CYGWIN__]: Don't print secmem warning.

* iobuf.c (direct_open): Handle mode 'b' if O_BINARY is available.
This commit is contained in:
Werner Koch 2002-10-21 16:32:10 +00:00
parent 07ebd38ff7
commit 4b2cd72c24
3 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2002-10-21 Werner Koch <wk@gnupg.org>
* 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 <wk@gnupg.org>
* w32reg.c (read_w32_registry_string): Fallback to HLM.

View File

@ -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

View File

@ -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
*/