1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-11 21:48:50 +01:00

* keylist.c (set_attrib_fd): Open attribute fd in binary mode. This isn't

meaningful on POSIX systems, but the Mingw builds aren't exactly POSIX.
This commit is contained in:
David Shaw 2004-01-21 04:35:32 +00:00
parent a18110a053
commit 97efb85f51
2 changed files with 8 additions and 3 deletions

View File

@ -1,5 +1,9 @@
2004-01-20 David Shaw <dshaw@jabberwocky.com> 2004-01-20 David Shaw <dshaw@jabberwocky.com>
* keylist.c (set_attrib_fd): Open attribute fd in binary
mode. This isn't meaningful on POSIX systems, but the Mingw builds
aren't exactly POSIX.
* trustdb.c (reset_trust_records): New, faster, implementation * trustdb.c (reset_trust_records): New, faster, implementation
that doesn't involve a keyring scan. that doesn't involve a keyring scan.
(clear_validity): Removed. (clear_validity): Removed.

View File

@ -1,6 +1,6 @@
/* keylist.c /* keylist.c
* Copyright (C) 1998, 1999, 2000, 2001, 2002 * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
* 2003 Free Software Foundation, Inc. * 2004 Free Software Foundation, Inc.
* *
* This file is part of GnuPG. * This file is part of GnuPG.
* *
@ -1469,10 +1469,11 @@ void set_attrib_fd(int fd)
else if( fd == 2 ) else if( fd == 2 )
attrib_fp = stderr; attrib_fp = stderr;
else else
attrib_fp = fdopen( fd, "w" ); attrib_fp = fdopen( fd, "wb" );
if( !attrib_fp ) { if( !attrib_fp ) {
log_fatal("can't open fd %d for attribute output: %s\n", log_fatal("can't open fd %d for attribute output: %s\n",
fd, strerror(errno)); fd, strerror(errno));
} }
last_fd = fd; last_fd = fd;
} }