aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 55dd706..18aee07 100644
--- a/src/main.c
+++ b/src/main.c
@@ -171,9 +171,14 @@ main(int argc, char **argv)
(void)fclose(fstream);
#else
- if (argc == 1)
+ if (argc == 1) {
argv = (static char *[]){"-"};
- else {
+ /* TODO: Can we test this in an OpenBSD VM? */
+#if 0 && defined(__OpenBSD__)
+ if (pledge("stdio") == -1)
+ cerr(EXIT_FATAL, "pledge:");
+#endif
+ } else {
argc--;
argv++;
flags.do_header = true;