diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-14 15:07:37 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-08-14 15:07:37 +0000 |
commit | 181a4e93d9387e663f38c96cd90031fb37bc177d (patch) | |
tree | c5107f320aea4fb9896b099f97db235bf6681f0a /usr.sbin | |
parent | a2d481cb83f222f9283ea5859b2247722937be6a (diff) |
bootfile, PidFile, NamedXfer should be absolute paths in the chroot'd case; niklas@openbsd.org
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/named/named/ns_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/named/named/ns_main.c b/usr.sbin/named/named/ns_main.c index 94db109ec7b..b3a56022b79 100644 --- a/usr.sbin/named/named/ns_main.c +++ b/usr.sbin/named/named/ns_main.c @@ -1,11 +1,11 @@ -/* $OpenBSD: ns_main.c,v 1.14 1998/05/23 19:24:51 millert Exp $ */ +/* $OpenBSD: ns_main.c,v 1.15 1998/08/14 15:07:36 millert Exp $ */ #if !defined(lint) && !defined(SABER) #if 0 static char sccsid[] = "@(#)ns_main.c 4.55 (Berkeley) 7/1/91"; static char rcsid[] = "$From: ns_main.c,v 8.26 1998/05/11 04:19:45 vixie Exp $"; #else -static char rcsid[] = "$OpenBSD: ns_main.c,v 1.14 1998/05/23 19:24:51 millert Exp $"; +static char rcsid[] = "$OpenBSD: ns_main.c,v 1.15 1998/08/14 15:07:36 millert Exp $"; #endif #endif /* not lint */ @@ -405,17 +405,17 @@ main(argc, argv, envp) p = dirname(bootfile); if ((stat(bootfile, &sb) != 0 || !S_ISDIR(sb.st_mode)) && (p = strrchr(bootfile, '/'))) - bootfile = p + 1; + bootfile = p; p = dirname(PidFile); if ((stat(PidFile, &sb) != 0 || !S_ISDIR(sb.st_mode)) && (p = strrchr(PidFile, '/'))) - PidFile = p + 1; + PidFile = p; p = dirname(NamedXfer); if ((stat(NamedXfer, &sb) != 0 || !S_ISDIR(sb.st_mode)) && (p = strrchr(NamedXfer, '/'))) - NamedXfer = p + 1; + NamedXfer = p; } n = 0; |