Browse Source

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.
OPENBSD_2_0
millert 28 years ago
parent
commit
1504780699
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      src/etc/security

+ 4
- 4
src/etc/security View File

@ -1,6 +1,6 @@
#!/bin/sh - #!/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 PATH=/sbin:/usr/sbin:/bin:/usr/bin
@ -224,11 +224,11 @@ fi
# Files that should not have + signs. # Files that should not have + signs.
list="/etc/hosts.equiv /etc/shosts.equiv /etc/hosts.lpd" list="/etc/hosts.equiv /etc/shosts.equiv /etc/hosts.lpd"
for f in $list ; do for f in $list ; do
if [ -f $f ] ; then
if [ -s $f ] ; then
awk '{ awk '{
if ($0 ~ /^+@.*$/ )
if ($0 ~ /^\+@.*$/ )
next; next;
if ($0 ~ /^+.*$/ )
if ($0 ~ /^\+.*$/ )
printf("\nPlus sign in %s file.\n", FILENAME); printf("\nPlus sign in %s file.\n", FILENAME);
}' $f }' $f
fi fi


Loading…
Cancel
Save