diff options
author | 1996-07-19 16:55:51 +0000 | |
---|---|---|
committer | 1996-07-19 16:55:51 +0000 | |
commit | 6c70acbc442e18ef86d7e387e25c0b9fd823b9c5 (patch) | |
tree | 32c6ff2f304708485beed3c9aa41a7307d33a658 | |
parent | eschew use of HAVE_SOCKADDR_SA_LEN for now (diff) | |
download | wireguard-openbsd-6c70acbc442e18ef86d7e387e25c0b9fd823b9c5.tar.xz wireguard-openbsd-6c70acbc442e18ef86d7e387e25c0b9fd823b9c5.zip |
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.
-rw-r--r-- | etc/security | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/security b/etc/security index 5f03a2822c8..8ba4b07aa7e 100644 --- a/etc/security +++ b/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 |