artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6798c7
)
After the filesystem is opened, pledge "stdio"
author
deraadt
<deraadt@openbsd.org>
Sun, 11 Oct 2015 04:37:23 +0000
(
04:37
+0000)
committer
deraadt
<deraadt@openbsd.org>
Sun, 11 Oct 2015 04:37:23 +0000
(
04:37
+0000)
ok doug
sbin/fsirand/fsirand.c
patch
|
blob
|
history
diff --git
a/sbin/fsirand/fsirand.c
b/sbin/fsirand/fsirand.c
index
316d43b
..
be3146b
100644
(file)
--- a/
sbin/fsirand/fsirand.c
+++ b/
sbin/fsirand/fsirand.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: fsirand.c,v 1.3
4 2015/03/20 01:53:05 miller
t Exp $ */
+/* $OpenBSD: fsirand.c,v 1.3
5 2015/10/11 04:37:23 deraad
t Exp $ */
/*
* Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@@
-121,6
+121,9
@@
fsirand(char *device)
bsize = label.d_secsize;
}
+ if (pledge("stdio", NULL) == -1)
+ err(1, "pledge");
+
/* Read in master superblock */
(void)memset(&sbuf, 0, sizeof(sbuf));
sblock = (struct fs *)&sbuf;