mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-26 08:08:59 +01:00
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:
parent
4bf7824849
commit
a381b3f4fb
@ -4360,16 +4360,16 @@ process_rule() # $1 = target
|
|||||||
|
|
||||||
case "$userspec" in
|
case "$userspec" in
|
||||||
!*+*)
|
!*+*)
|
||||||
if [ "$userspec" != "!+" ]; then
|
if [ -n "${userspec#*+}" ]; then
|
||||||
userandgroup="$userandgroup ! --cmd-owner ${userspec#*+}"
|
userandgroup="$userandgroup ! --cmd-owner ${userspec#*+}"
|
||||||
userspec=${userspec%+*}
|
|
||||||
fi
|
fi
|
||||||
|
userspec=${userspec%+*}
|
||||||
;;
|
;;
|
||||||
*+*)
|
*+*)
|
||||||
if [ "$userspec" != "+" ]; then
|
if [ -n "${userspec#*+}" ]; then
|
||||||
userandgroup="$userandgroup --cmd-owner ${userspec#*+}"
|
userandgroup="$userandgroup --cmd-owner ${userspec#*+}"
|
||||||
userspec=${userspec%+*}
|
|
||||||
fi
|
fi
|
||||||
|
userspec=${userspec%+*}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user