aboutsummaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
Diffstat (limited to 'time')
-rw-r--r--time/getdate.c4
-rw-r--r--time/tzfile.c4
2 files changed, 5 insertions, 3 deletions
diff --git a/time/getdate.c b/time/getdate.c
index 8c9d16f..851efac 100644
--- a/time/getdate.c
+++ b/time/getdate.c
@@ -1,5 +1,5 @@
/* Convert a string representation of time to a time value.
- Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1997,1998,1999,2000,2001,2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Mark Kettenis <kettenis@phys.uva.nl>, 1997.
@@ -129,7 +129,7 @@ __getdate_r (const char *string, struct tm *tp)
return 2;
/* Open the template file. */
- fp = fopen (datemsk, "r");
+ fp = fopen (datemsk, "rc");
if (fp == NULL)
return 2;
diff --git a/time/tzfile.c b/time/tzfile.c
index 2d1775b..e2d9f50 100644
--- a/time/tzfile.c
+++ b/time/tzfile.c
@@ -148,7 +148,9 @@ __tzfile_read (const char *file, size_t extra, char **extrap)
file = new;
}
- f = fopen (file, "r");
+ /* Note the file is opened with cancellation in the I/O functions
+ disabled. */
+ f = fopen (file, "rc");
if (f == NULL)
return;