summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorflipk <flipk@cvs.openbsd.org>1997-06-02 02:02:26 +0000
committerflipk <flipk@cvs.openbsd.org>1997-06-02 02:02:26 +0000
commitcdf9a23c7b0765c859bc07383aa644beee807095 (patch)
tree8cff5a5c43248b0a026fff05078f2176a7d80588 /etc
parentb809d01c71530ab86c569ab11dd42ead6758027f (diff)
1. ignore blank lines
2. /-ro/ -> /^-ro$/ : allows hostnames containing "*-ro*" and ignores "-root"
Diffstat (limited to 'etc')
-rw-r--r--etc/security6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/security b/etc/security
index 69502352817..019372d421b 100644
--- a/etc/security
+++ b/etc/security
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: security,v 1.18 1997/03/17 20:17:57 gene Exp $
+# $OpenBSD: security,v 1.19 1997/06/02 02:02:25 flipk Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93
#
@@ -361,11 +361,11 @@ fi
# File systems should not be globally exported.
if [ -s /etc/exports ] ; then
awk '{
- if ($1 ~ /^#/)
+ if (($1 ~ /^#/) || ($1 ~ /^$/))
next;
readonly = 0;
for (i = 2; i <= NF; ++i) {
- if ($i ~ /-ro/)
+ if ($i ~ /^-ro$/)
readonly = 1;
else if ($i !~ /^-/)
next;