From e64c7ac1e791d83ccdb68a3e4008017ff12a7737 Mon Sep 17 00:00:00 2001 From: flipk <> Date: Mon, 2 Jun 1997 02:02:25 +0000 Subject: [PATCH] 1. ignore blank lines 2. /-ro/ -> /^-ro$/ : allows hostnames containing "*-ro*" and ignores "-root" --- src/etc/security | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/etc/security b/src/etc/security index 69502352..019372d4 100644 --- a/src/etc/security +++ b/src/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;