summary refs log tree commit diff
path: root/libio/iovdprintf.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-03-10 20:32:27 +0000
committerUlrich Drepper <drepper@redhat.com>1998-03-10 20:32:27 +0000
commitfe848e93865384db7457d3b01aad298a6f785be7 (patch)
tree171df1f4d46f82338f621d0f7450639c767f7046 /libio/iovdprintf.c
parent8193034b1d0e3760dadb06b891a22cd4631c675a (diff)
downloadglibc-fe848e93865384db7457d3b01aad298a6f785be7.tar.gz
glibc-fe848e93865384db7457d3b01aad298a6f785be7.tar.xz
glibc-fe848e93865384db7457d3b01aad298a6f785be7.zip
Update.
1998-03-10  Ulrich Drepper  <drepper@cygnus.com>

	* libio/iovdprintf.c (_IO_vdprintf): Set _IO_DELETE_DONT_CLOSE
	flag.

	* misc/syslog.c (vsyslog): Don't try to send if not connected to
	syslog daemon.
	(closelog_internal): Don't do anything if not connected.
Diffstat (limited to 'libio/iovdprintf.c')
-rw-r--r--libio/iovdprintf.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libio/iovdprintf.c b/libio/iovdprintf.c
index a24d3b535e..d95af4742f 100644
--- a/libio/iovdprintf.c
+++ b/libio/iovdprintf.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU IO Library.
 
    This library is free software; you can redistribute it and/or
@@ -52,11 +52,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);