diff options
author | David Shaw <[email protected]> | 2004-01-21 04:35:32 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2004-01-21 04:35:32 +0000 |
commit | 97efb85f51438d3f9e66e40c47db52dd90aca954 (patch) | |
tree | efe2c007cae9fd0bcc77f247efe749af7ad616c8 /g10/keylist.c | |
parent | hppa1.1/udiv-qrnnd.S: Alignment fix from Lamont Jones for Debian. (diff) | |
download | gnupg-97efb85f51438d3f9e66e40c47db52dd90aca954.tar.gz gnupg-97efb85f51438d3f9e66e40c47db52dd90aca954.zip |
* 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.
Diffstat (limited to 'g10/keylist.c')
-rw-r--r-- | g10/keylist.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/g10/keylist.c b/g10/keylist.c index 1cc9720e2..29cf9462d 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -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; } |