aboutsummaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-11-14 18:46:46 -0500
committerUlrich Drepper <drepper@gmail.com>2011-11-14 18:46:46 -0500
commit82af0fa8de8201803ac670fa0de7d702ce9f0f18 (patch)
tree27e378aa08bef53fb9ca39380ed3410352ee41c6 /time
parente188ebba21d9a2982289d703a406b722519513bb (diff)
downloadglibc-82af0fa8de8201803ac670fa0de7d702ce9f0f18.tar
glibc-82af0fa8de8201803ac670fa0de7d702ce9f0f18.tar.gz
glibc-82af0fa8de8201803ac670fa0de7d702ce9f0f18.tar.bz2
glibc-82af0fa8de8201803ac670fa0de7d702ce9f0f18.zip
Use O_CLOEXEC in tzfile handling
Diffstat (limited to 'time')
-rw-r--r--time/tzfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/time/tzfile.c b/time/tzfile.c
index f4cba46e50..144e20ba2e 100644
--- a/time/tzfile.c
+++ b/time/tzfile.c
@@ -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;