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:
parent
a18110a053
commit
97efb85f51
@ -1,5 +1,9 @@
|
||||
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
|
||||
that doesn't involve a keyring scan.
|
||||
(clear_validity): Removed.
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* keylist.c
|
||||
* Copyright (C) 1998, 1999, 2000, 2001, 2002
|
||||
* 2003 Free Software Foundation, Inc.
|
||||
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003
|
||||
* 2004 Free Software Foundation, Inc.
|
||||
*
|
||||
* This file is part of GnuPG.
|
||||
*
|
||||
@ -1469,10 +1469,11 @@ void set_attrib_fd(int fd)
|
||||
else if( fd == 2 )
|
||||
attrib_fp = stderr;
|
||||
else
|
||||
attrib_fp = fdopen( fd, "w" );
|
||||
attrib_fp = fdopen( fd, "wb" );
|
||||
if( !attrib_fp ) {
|
||||
log_fatal("can't open fd %d for attribute output: %s\n",
|
||||
fd, strerror(errno));
|
||||
}
|
||||
|
||||
last_fd = fd;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user