summaryrefslogtreecommitdiff
path: root/usr.bin/nc
diff options
context:
space:
mode:
authorRicardo Mestre <mestre@cvs.openbsd.org>2019-08-08 16:50:53 +0000
committerRicardo Mestre <mestre@cvs.openbsd.org>2019-08-08 16:50:53 +0000
commit27b028eebd6b32f3c76ab2feb861b807f08fd913 (patch)
tree4cc1dd23d94961618d0aa8b53b51a2e255d7bdd2 /usr.bin/nc
parent93dbd292c662f3cd13053ba1e732f3817c2bc2dc (diff)
added /* no filesystem visibility */ above unveil("/", "") since "" is too easy
to misread. as per suggestion by and OK deraadt@
Diffstat (limited to 'usr.bin/nc')
-rw-r--r--usr.bin/nc/netcat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c
index c2e769c4c05..c04298f64c3 100644
--- a/usr.bin/nc/netcat.c
+++ b/usr.bin/nc/netcat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netcat.c,v 1.205 2019/06/28 13:35:02 deraadt Exp $ */
+/* $OpenBSD: netcat.c,v 1.206 2019/08/08 16:49:35 mestre Exp $ */
/*
* Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
* Copyright (c) 2015 Bob Beck. All rights reserved.
@@ -383,6 +383,7 @@ main(int argc, char *argv[])
err(1, "unveil");
}
} else {
+ /* no filesystem visibility */
if (unveil("/", "") == -1)
err(1, "unveil");
}