-# $OpenBSD: Makefile,v 1.1 2014/12/23 17:16:02 deraadt Exp $
+# $OpenBSD: Makefile,v 1.2 2015/10/15 15:11:10 semarie Exp $
PROG= fsck_ext2fs
MAN= fsck_ext2fs.8
SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
pass5.c fsutil.c setup.c utilities.c ext2fs_bswap.c
-CFLAGS+= -I${.CURDIR}/../../../sbin/fsck
+CFLAGS+= -I${.CURDIR}/../../../sbin/fsck -DSMALL
.PATH: ${.CURDIR}/../../../sbin/fsck_ext2fs
.PATH: ${.CURDIR}/../../../sbin/fsck
-# $OpenBSD: Makefile,v 1.1 2014/12/23 17:16:02 deraadt Exp $
+# $OpenBSD: Makefile,v 1.2 2015/10/15 15:11:10 semarie Exp $
PROG= fsck_ffs
MAN= fsck_ffs.8
SRCS= dir.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
pass5.c fsutil.c setup.c utilities.c ffs_subr.c ffs_tables.c
-CFLAGS+= -I${.CURDIR}/../../../sbin/fsck
+CFLAGS+= -I${.CURDIR}/../../../sbin/fsck -DSMALL
DPADD+= ${LIBUTIL}
LDADD+= -lutil
-/* $OpenBSD: setup.c,v 1.28 2015/10/14 16:58:55 deraadt Exp $ */
+/* $OpenBSD: setup.c,v 1.29 2015/10/15 15:11:10 semarie Exp $ */
/* $NetBSD: setup.c,v 1.1 1997/06/11 11:22:01 bouyer Exp $ */
/*
secsize = DEV_BSIZE;
if (!hotroot()) {
+#ifndef SMALL
+ if (pledge("stdio getpw", NULL) == -1)
+ err(1, "pledge");
+#else
if (pledge("stdio", NULL) == -1)
err(1, "pledge");
+#endif
}
/*
-/* $OpenBSD: setup.c,v 1.58 2015/10/14 16:58:55 deraadt Exp $ */
+/* $OpenBSD: setup.c,v 1.59 2015/10/15 15:11:10 semarie Exp $ */
/* $NetBSD: setup.c,v 1.27 1996/09/27 22:45:19 christos Exp $ */
/*
secsize = DEV_BSIZE;
if (!hotroot()) {
+#ifndef SMALL
+ if (pledge("stdio getpw", NULL) == -1)
+ err(1, "pledge");
+#else
if (pledge("stdio", NULL) == -1)
err(1, "pledge");
+#endif
}
/*