Browse Source

support shell globs on ^+ lines in changelist(5)

based on a patch from John Wong, johnw at wonghome dot net, tweaked by me
while here, document globbing for normal lines, too
"i like that" okan@;  feedback and ok jmc@
OPENBSD_4_6
schwarze 15 years ago
parent
commit
18b1eb6ed4
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/etc/security

+ 2
- 3
src/etc/security View File

@ -1,5 +1,5 @@
# #
# $OpenBSD: security,v 1.85 2009/05/16 23:40:13 schwarze Exp $
# $OpenBSD: security,v 1.86 2009/05/18 19:37:47 schwarze Exp $
# from: @(#)security 8.1 (Berkeley) 6/9/93 # from: @(#)security 8.1 (Berkeley) 6/9/93
# #
@ -581,8 +581,7 @@ if [ -s /etc/changelist ] ; then
chown root:wheel $BACK chown root:wheel $BACK
fi fi
done done
for file in `egrep "^\+" /etc/changelist`; do
file="${file#+}"
for file in `sed -n 's/^+//p' /etc/changelist`; do
CUR=/var/backups/$(_fnchg "$file").current.md5 CUR=/var/backups/$(_fnchg "$file").current.md5
BACK=/var/backups/$(_fnchg "$file").backup.md5 BACK=/var/backups/$(_fnchg "$file").backup.md5
if [ -s $file -a ! -d $file ] ; then if [ -s $file -a ! -d $file ] ; then


Loading…
Cancel
Save