summaryrefslogtreecommitdiff
path: root/usr.bin/from
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-11-05 18:42:42 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-11-05 18:42:42 +0000
commitf7fb5a77e06f421fafb56e4bda41245528ffdf65 (patch)
tree2bf0f6378b0ee45d1a0a4af15458a497184cc9d9 /usr.bin/from
parent65e5baa74f02496a3fcbbdfbb792d7c52caf0c8c (diff)
Add blank lines around pledge call.
Diffstat (limited to 'usr.bin/from')
-rw-r--r--usr.bin/from/from.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/from/from.c b/usr.bin/from/from.c
index 79bd7506863..52bf5e3af03 100644
--- a/usr.bin/from/from.c
+++ b/usr.bin/from/from.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: from.c,v 1.23 2015/11/03 05:11:46 mmcc Exp $ */
+/* $OpenBSD: from.c,v 1.24 2015/11/05 18:42:41 mmcc Exp $ */
/* $NetBSD: from.c,v 1.6 1995/09/01 01:39:10 jtc Exp $ */
/*
@@ -83,8 +83,10 @@ main(int argc, char *argv[])
exit(EXIT_SUCCESS);
err(1, "%s", file);
}
+
if (pledge("stdio", NULL) == -1)
err(1, "pledge");
+
for (newline = 1; (linelen = getline(&line, &linesize, fp)) != -1;) {
if (*line == '\n') {
newline = 1;