diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-03-17 04:14:27 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-03-17 04:14:27 +0000 |
commit | 71c5289b0fcdd4ea89309a18d5e924fa962aab66 (patch) | |
tree | 77e6389be82bcc068191eef654bfe6222bb67d0d /time/tzfile.c | |
parent | 1893ec6a38332482a0ca2d9032118a8f0d162d08 (diff) |
Update from tzcode1997c.
Diffstat (limited to 'time/tzfile.c')
-rw-r--r-- | time/tzfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/time/tzfile.c b/time/tzfile.c index 94b8a3c8fe..44b33cb02c 100644 --- a/time/tzfile.c +++ b/time/tzfile.c @@ -120,7 +120,7 @@ __tzfile_read (const char *file) and which is not the system wide default TZDEFAULT. */ if (__libc_enable_secure && ((*file == '/' - && memcmp (file, TZDEFAULT, sizeof (TZDEFAULT) - 1) + && memcmp (file, TZDEFAULT, sizeof TZDEFAULT) && memcmp (file, default_tzdir, sizeof (default_tzdir) - 1)) || strstr (file, "../") != NULL)) /* This test is certainly a bit too restrictive but it should |