mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-12 08:38:14 +01:00
Fix a couple of bugs in cmd-owner
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2082 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
2a49610b49
commit
4bf7824849
@ -2409,7 +2409,7 @@ process_tc_rule()
|
||||
|
||||
case "$user" in
|
||||
*+*)
|
||||
r="$r --cmd-owner ${user#*/}"
|
||||
r="$r --cmd-owner ${user#*+}"
|
||||
user=${user%+*}
|
||||
;;
|
||||
esac
|
||||
@ -2756,7 +2756,7 @@ process_accounting_rule() {
|
||||
if [ -n "${user#*+}" ]; then
|
||||
rule="$rule ! --cmd-owner ${user#*+} "
|
||||
fi
|
||||
user1=${user%/+}
|
||||
user1=${user%+*}
|
||||
;;
|
||||
*+*)
|
||||
if [ -n "${user#*+}" ]; then
|
||||
@ -4365,7 +4365,7 @@ process_rule() # $1 = target
|
||||
userspec=${userspec%+*}
|
||||
fi
|
||||
;;
|
||||
*/*)
|
||||
*+*)
|
||||
if [ "$userspec" != "+" ]; then
|
||||
userandgroup="$userandgroup --cmd-owner ${userspec#*+}"
|
||||
userspec=${userspec%+*}
|
||||
|
Loading…
Reference in New Issue
Block a user