From 1504780699a33502fb4e7f6280f3e3ab649d0090 Mon Sep 17 00:00:00 2001 From: millert <> Date: Fri, 19 Jul 1996 16:55:51 +0000 Subject: [PATCH] Would give complain that /etc/hosts.equiv /etc/shosts.equiv /etc/hosts.lpd have '+' in them even when they don't. Escaped the + to fix. --- src/etc/security | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/etc/security b/src/etc/security index 5f03a282..8ba4b07a 100644 --- a/src/etc/security +++ b/src/etc/security @@ -1,6 +1,6 @@ #!/bin/sh - # -# $OpenBSD: security,v 1.5 1996/07/12 00:06:50 deraadt Exp $ +# $OpenBSD: security,v 1.6 1996/07/19 16:55:51 millert Exp $ # PATH=/sbin:/usr/sbin:/bin:/usr/bin @@ -224,11 +224,11 @@ fi # Files that should not have + signs. list="/etc/hosts.equiv /etc/shosts.equiv /etc/hosts.lpd" for f in $list ; do - if [ -f $f ] ; then + if [ -s $f ] ; then awk '{ - if ($0 ~ /^+@.*$/ ) + if ($0 ~ /^\+@.*$/ ) next; - if ($0 ~ /^+.*$/ ) + if ($0 ~ /^\+.*$/ ) printf("\nPlus sign in %s file.\n", FILENAME); }' $f fi