summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorKevin Steves <stevesk@cvs.openbsd.org>2007-12-27 01:46:51 +0000
committerKevin Steves <stevesk@cvs.openbsd.org>2007-12-27 01:46:51 +0000
commit06b119dfb0e5068c3ca5829a1d14dc34643f86e9 (patch)
tree20449270d81d4b4279f31c6b786d90161ae2e90b /usr.sbin
parentc2107d1b3bd0589ee5e1f98b46089ec5acf19e11 (diff)
some fatal() calls that should be fatalx(); ok henning@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ntpd/client.c4
-rw-r--r--usr.sbin/ntpd/ntp.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c
index 2d4c033cb09..157e06c13e8 100644
--- a/usr.sbin/ntpd/client.c
+++ b/usr.sbin/ntpd/client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: client.c,v 1.77 2007/11/22 10:24:25 otto Exp $ */
+/* $OpenBSD: client.c,v 1.78 2007/12/27 01:46:50 stevesk Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -80,7 +80,7 @@ client_addr_init(struct ntp_peer *p)
p->state = STATE_DNS_DONE;
break;
default:
- fatal("king bula sez: wrong AF in client_addr_init");
+ fatalx("king bula sez: wrong AF in client_addr_init");
/* not reached */
}
}
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c
index 46b92d5f2fd..1da3eef6ca1 100644
--- a/usr.sbin/ntpd/ntp.c
+++ b/usr.sbin/ntpd/ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp.c,v 1.101 2007/12/22 18:26:21 stevesk Exp $ */
+/* $OpenBSD: ntp.c,v 1.102 2007/12/27 01:46:50 stevesk Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -110,7 +110,7 @@ ntp_main(int pipe_prnt[2], struct ntpd_conf *nconf, struct passwd *pw)
if (stat(pw->pw_dir, &stb) == -1)
fatal("stat");
if (stb.st_uid != 0 || (stb.st_mode & (S_IWGRP|S_IWOTH)) != 0)
- fatal("bad privsep dir permissions");
+ fatalx("bad privsep dir permissions");
if (chroot(pw->pw_dir) == -1)
fatal("chroot");
if (chdir("/") == -1)