summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2012-05-31 13:55:55 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2012-05-31 13:55:55 +0000
commitd3d06c4a74ba61dadea3bdec9844831c02da4978 (patch)
treebaf9a9a9bf5f3116575cb70f560e6148f2a5ee8b /sbin
parent6647751cac7fc50e54a5a8f0d3714c5912716e37 (diff)
Let quotacheck work with duid based fstab. Missed one open() -> opendev()
from Rogier Krieger's original diff. Found by and fix tested by dlg@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/quotacheck/quotacheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
index 5dbc445e539..01402830c90 100644
--- a/sbin/quotacheck/quotacheck.c
+++ b/sbin/quotacheck/quotacheck.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: quotacheck.c,v 1.28 2012/04/12 18:30:43 deraadt Exp $ */
+/* $OpenBSD: quotacheck.c,v 1.29 2012/05/31 13:55:54 krw Exp $ */
/* $NetBSD: quotacheck.c,v 1.12 1996/03/30 22:34:25 mark Exp $ */
/*
@@ -271,7 +271,7 @@ chkquota(const char *vfstype, const char *fsname, const char *mntpt,
warn("fork");
return 1;
case 0: /* child */
- if ((fi = open(fsname, O_RDONLY, 0)) < 0)
+ if ((fi = opendev(fsname, O_RDONLY, 0, NULL)) < 0)
err(1, "%s", fsname);
sync();
dev_bsize = 1;