diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-11 23:08:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-11 23:08:54 +0000 |
commit | 6e2cb08a0c7b8530eaa28bca285ffe9da794545a (patch) | |
tree | 37a98467d2fefe691c22103df5e0d218f6e641e1 /lib/libc/time | |
parent | 0e1f1d6ebb524e8ab7badc1f461e4dc289717ce8 (diff) |
do not let :relative paths through (how did i miss this before)
Diffstat (limited to 'lib/libc/time')
-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 ee180d11d95..a3b0b10ba61 100644 --- a/lib/libc/time/localtime.c +++ b/lib/libc/time/localtime.c @@ -5,7 +5,7 @@ #if defined(LIBC_SCCS) && !defined(lint) && !defined(NOID) static char elsieid[] = "@(#)localtime.c 7.64"; -static char rcsid[] = "$OpenBSD: localtime.c,v 1.11 1998/01/18 23:24:53 millert Exp $"; +static char rcsid[] = "$OpenBSD: localtime.c,v 1.12 1998/07/11 23:08:53 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -277,7 +277,7 @@ register struct state * const sp; register int fid; if (name != NULL && issetugid() != 0) - if ((name[0] == ':' && name[1] == '/') || + if ((name[0] == ':') || name[0] == '/' || strchr(name, '.')) name = NULL; if (name == NULL && (name = TZDEFAULT) == NULL) |