On Tue, Aug 30, 2011 at 01:25, Rogier Krieger <rkrie...@gmail.com> wrote:
> Would the attached diff be acceptable?

Sorry, no real point in adding a variable that is not really used. I
should've read the man page more thoroughly. New diff, without that
junk. Also at http://pastebin.com/bRiUuX1J

Index: Makefile
===================================================================
RCS file: /cvs/src/sbin/quotacheck/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile    21 Sep 1997 11:37:57 -0000      1.6
+++ Makefile    30 Aug 2011 02:59:22 -0000
@@ -6,4 +6,7 @@
 MAN=   quotacheck.8
 .PATH: ${.CURDIR}/../fsck

+LDADD+=-lutil
+DPADD+=${LIBUTIL}
+
 .include <bsd.prog.mk>
Index: quotacheck.c
===================================================================
RCS file: /cvs/src/sbin/quotacheck/quotacheck.c,v
retrieving revision 1.25
diff -u -r1.25 quotacheck.c
--- quotacheck.c        27 Oct 2009 23:59:34 -0000      1.25
+++ quotacheck.c        30 Aug 2011 02:59:22 -0000
@@ -50,6 +50,7 @@
 #include <grp.h>
 #include <errno.h>
 #include <unistd.h>
+#include <util.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -269,7 +270,7 @@
                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;

Reply via email to