Browse Source

1. ignore blank lines

2. /-ro/   ->  /^-ro$/ : allows hostnames containing "*-ro*" and
ignores "-root"
OPENBSD_2_2
flipk 27 years ago
parent
commit
e64c7ac1e7
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/etc/security

+ 3
- 3
src/etc/security View File

@ -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;


Loading…
Cancel
Save