mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-01 23:45:53 +02:00
Correct the check for ordinary user attempting to access the default config
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
aa7aec8552
commit
273a42b068
@ -389,7 +389,7 @@ compiler() {
|
|||||||
pc=${LIBEXECDIR}/shorewall/compiler.pl
|
pc=${LIBEXECDIR}/shorewall/compiler.pl
|
||||||
|
|
||||||
if [ $(id -u) -ne 0 ]; then
|
if [ $(id -u) -ne 0 ]; then
|
||||||
if [ -z "$g_shorewalldir" -o "$g_shorewalldir" = /etc/$g_program ]; then
|
if [ -z "$g_shorewalldir" -o "$g_shorewalldir" = $CONFDIR/$g_program ]; then
|
||||||
startup_error "Ordinary users may not $COMMAND the $CONFDIR/$g_program configuration"
|
startup_error "Ordinary users may not $COMMAND the $CONFDIR/$g_program configuration"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@ -417,7 +417,7 @@ compiler() {
|
|||||||
|
|
||||||
# Perl compiler only takes the output file as a argument
|
# Perl compiler only takes the output file as a argument
|
||||||
|
|
||||||
[ "$1" = debug -o "$1" = trace ] && shift;
|
[ "$1" = debug -o "$1" = trace ] && shift;
|
||||||
[ "$1" = nolock ] && shift;
|
[ "$1" = nolock ] && shift;
|
||||||
shift
|
shift
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user