From: Ulrich Drepper Date: Tue, 10 Mar 1998 21:29:01 +0000 (+0000) Subject: (_IO_vdprintf): Set _IO_DELETE_DONT_CLOSE flag. X-Git-Tag: cvs/before-sparc-2_0_x-branch~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31497e656ee15ba1a85c4079ba30ad9765420e82;p=thirdparty%2Fglibc.git (_IO_vdprintf): Set _IO_DELETE_DONT_CLOSE flag. --- diff --git a/libio/iovdprintf.c b/libio/iovdprintf.c index b4b1cc337c6..d6c85d53116 100644 --- a/libio/iovdprintf.c +++ b/libio/iovdprintf.c @@ -51,11 +51,10 @@ _IO_vdprintf (d, format, arg) _IO_un_link (&tmpfil.file); return EOF; } - tmpfil.file._flags &= ~_IO_DELETE_DONT_CLOSE; - tmpfil.file._IO_file_flags = - _IO_mask_flags (&tmpfil.file, _IO_NO_READS, - _IO_NO_READS+_IO_NO_WRITES+_IO_IS_APPENDING); + (_IO_mask_flags (&tmpfil.file, _IO_NO_READS, + _IO_NO_READS+_IO_NO_WRITES+_IO_IS_APPENDING) + | _IO_DELETE_DONT_CLOSE); done = _IO_vfprintf (&tmpfil.file, format, arg);