Fix a couple of bugs in cmd-owner

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2083 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-05-03 22:47:10 +00:00
parent 4bf7824849
commit a381b3f4fb

View File

@ -4360,16 +4360,16 @@ process_rule() # $1 = target
case "$userspec" in
!*+*)
if [ "$userspec" != "!+" ]; then
if [ -n "${userspec#*+}" ]; then
userandgroup="$userandgroup ! --cmd-owner ${userspec#*+}"
userspec=${userspec%+*}
fi
userspec=${userspec%+*}
;;
*+*)
if [ "$userspec" != "+" ]; then
if [ -n "${userspec#*+}" ]; then
userandgroup="$userandgroup --cmd-owner ${userspec#*+}"
userspec=${userspec%+*}
fi
userspec=${userspec%+*}
;;
esac