artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f9f973
)
After the disk is opened, this can pledge "stdio".
author
deraadt
<deraadt@openbsd.org>
Sun, 11 Oct 2015 04:33:17 +0000
(
04:33
+0000)
committer
deraadt
<deraadt@openbsd.org>
Sun, 11 Oct 2015 04:33:17 +0000
(
04:33
+0000)
ok doug
sbin/scan_ffs/scan_ffs.c
patch
|
blob
|
history
diff --git
a/sbin/scan_ffs/scan_ffs.c
b/sbin/scan_ffs/scan_ffs.c
index
0352246
..
8c8e6bf
100644
(file)
--- a/
sbin/scan_ffs/scan_ffs.c
+++ b/
sbin/scan_ffs/scan_ffs.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: scan_ffs.c,v 1.
19 2015/01/20 18:22:21
deraadt Exp $ */
+/* $OpenBSD: scan_ffs.c,v 1.
20 2015/10/11 04:33:17
deraadt Exp $ */
/*
* Copyright (c) 1998 Niklas Hallqvist, Tobias Weingartner
@@
-173,5
+173,8
@@
main(int argc, char *argv[])
if (fd < 0)
err(1, "%s", argv[0]);
+ if (pledge("stdio", NULL) == -1)
+ err(1, "pledge");
+
return (ufsscan(fd, beg, end, flags));
}