summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-01-22 00:37:15 +0000
committerderaadt <deraadt@openbsd.org>1997-01-22 00:37:15 +0000
commit7bf18b221c1de2b0321e4551f880b37c708537a5 (patch)
tree47d0db0f954e39edad1123a6b684bcb441567198
parentback out 1.4; I should know better than to do this after a big meal (diff)
downloadwireguard-openbsd-7bf18b221c1de2b0321e4551f880b37c708537a5.tar.xz
wireguard-openbsd-7bf18b221c1de2b0321e4551f880b37c708537a5.zip
call err() correctly
-rw-r--r--sbin/quotacheck/quotacheck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
index 13f3db18f3a..186ffc3baf9 100644
--- a/sbin/quotacheck/quotacheck.c
+++ b/sbin/quotacheck/quotacheck.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: quotacheck.c,v 1.8 1997/01/03 16:22:10 mickey Exp $ */
+/* $OpenBSD: quotacheck.c,v 1.9 1997/01/22 00:37:15 deraadt Exp $ */
/* $NetBSD: quotacheck.c,v 1.12 1996/03/30 22:34:25 mark Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)quotacheck.c 8.3 (Berkeley) 1/29/94";
#else
-static char rcsid[] = "$OpenBSD: quotacheck.c,v 1.8 1997/01/03 16:22:10 mickey Exp $";
+static char rcsid[] = "$OpenBSD: quotacheck.c,v 1.9 1997/01/22 00:37:15 deraadt Exp $";
#endif
#endif /* not lint */
@@ -277,7 +277,7 @@ chkquota(vfstype, fsname, mntpt, auxarg, pidp)
return 1;
case 0: /* child */
if ((fi = open(fsname, O_RDONLY, 0)) < 0)
- err("%s", fsname);
+ err(1, "%s", fsname);
sync();
dev_bsize = 1;
bread(SBOFF, (char *)&sblock, (long)SBSIZE);