From 5433dd6660505ef694a1d8699c507da5a7c722e4 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Mon, 17 Feb 2003 12:59:06 +0000 Subject: Use a define for the path to /etc/TZ --- libc/misc/time/time.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/misc') diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c index ce33bc841..ad5abe6a2 100644 --- a/libc/misc/time/time.c +++ b/libc/misc/time/time.c @@ -136,6 +136,7 @@ #include #include #include +#include "paths.h" /* ":+hh:mm:ss+hh:mm:ss,Mmm.w.d/hh:mm:ss,Mmm.w.d/hh:mm:ss" + nul */ /* 1 + 2*(1+TZNAME_MAX+1 + 9 + 7 + 9) + 1 = 2*TZNAME_MAX + 56 */ #else /* __TIME_TZ_FILE */ @@ -1537,7 +1538,7 @@ static char *read_TZ_file(char *buf) size_t todo; char *p = NULL; - if ((fd = open("/etc/TZ", O_RDONLY)) >= 0) { + if ((fd = open(_PATH_TZ, O_RDONLY)) >= 0) { todo = TZ_BUFLEN; p = buf; do { -- cgit v1.2.3