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