]> sourceware.org Git - glibc.git/commitdiff
Use O_CLOEXEC in tzfile handling
authorUlrich Drepper <drepper@gmail.com>
Mon, 14 Nov 2011 23:46:46 +0000 (18:46 -0500)
committerUlrich Drepper <drepper@gmail.com>
Mon, 14 Nov 2011 23:46:46 +0000 (18:46 -0500)
ChangeLog
time/tzfile.c

index cbbf5926a1c2f0d0fab7777ce30f73bd40462cdc..054fbc2ac2c1219cf234c7238c3f631add84a018 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-11-14  Ulrich Drepper  <drepper@gmail.com>
+
+       * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
+
 2011-11-14  Andreas Schwab  <schwab@redhat.com>
 
        * malloc/arena.c (arena_get2): Don't call reused_arena when
index f4cba46e5042ad4515440d52025a1ca4bfd9f11b..144e20ba2ee6a7cc641734384c88418290c0d28c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991-1993,1995-2001,2003,2004,2006,2007,2009
+/* Copyright (C) 1991-1993,1995-2001,2003,2004,2006,2007,2009,2011
    Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
@@ -178,8 +178,8 @@ __tzfile_read (const char *file, size_t extra, char **extrap)
     }
 
   /* Note the file is opened with cancellation in the I/O functions
-     disabled.  */
-  f = fopen (file, "rc");
+     disabled and if available FD_CLOEXEC set.  */
+  f = fopen (file, "rce");
   if (f == NULL)
     goto ret_free_transitions;
 
This page took 0.052732 seconds and 5 git commands to generate.