diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2018-09-24 21:26:03 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2018-09-24 21:26:03 +0000 |
commit | 4448fbbaceca0b117857a2481280595dcde2ba19 (patch) | |
tree | d514eacd6028984204aaca82204010b11be2d360 /sbin/fsck_ffs/main.c | |
parent | ecc0dd7640442600f675d8684c8556b7e4ff1f54 (diff) |
Use unveil(2). These programs fit together in various strange ways,
so if a problem is encountered with this the whole set needs backout
and study.
Diffstat (limited to 'sbin/fsck_ffs/main.c')
-rw-r--r-- | sbin/fsck_ffs/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/main.c b/sbin/fsck_ffs/main.c index 417ea542c3b..0f6b6f7ae28 100644 --- a/sbin/fsck_ffs/main.c +++ b/sbin/fsck_ffs/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.51 2018/01/05 09:33:47 otto Exp $ */ +/* $OpenBSD: main.c,v 1.52 2018/09/24 21:26:02 deraadt Exp $ */ /* $NetBSD: main.c,v 1.22 1996/10/11 20:15:48 thorpej Exp $ */ /* @@ -67,6 +67,8 @@ main(int argc, char *argv[]) int ch; int ret = 0; + checkroot(); + sync(); skipclean = 1; while ((ch = getopt(argc, argv, "dfpnNyYb:c:m:")) != -1) { |