diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-25 10:11:12 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-25 10:11:12 +0000 |
commit | dfedb08915b999cdcfec182173f93bcd5b869459 (patch) | |
tree | 546ef680aad37b9852bcdc7e4381c349cea453fb /lib/libc/time/localtime.c | |
parent | 613577d979b284a77180108564f913611abd91d9 (diff) |
use issetugid()
Diffstat (limited to 'lib/libc/time/localtime.c')
-rw-r--r-- | lib/libc/time/localtime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/time/localtime.c b/lib/libc/time/localtime.c index 83c56a8468a..ea5f177001d 100644 --- a/lib/libc/time/localtime.c +++ b/lib/libc/time/localtime.c @@ -1,5 +1,5 @@ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: localtime.c,v 1.4 1996/08/19 08:34:50 tholo Exp $"; +static char rcsid[] = "$OpenBSD: localtime.c,v 1.5 1996/08/25 10:11:11 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -282,7 +282,7 @@ register struct state * const sp; if (name[0] == ':') ++name; doaccess = name[0] == '/'; - if (!doaccess) { + if (!doaccess && issetugid() == 0) { if ((p = TZDIR) == NULL) return -1; if ((strlen(p) + strlen(name) + 1) >= sizeof fullname) |