tighten up adc arguments a bit more
This commit is contained in:
parent
d3a663d03f
commit
7bea99148c
|
@ -1087,7 +1087,7 @@ sub try_adc {
|
||||||
if (-x "$GL_ADC_PATH/$cmd") {
|
if (-x "$GL_ADC_PATH/$cmd") {
|
||||||
die "I don't like $cmd\n" if $cmd =~ /\.\./;
|
die "I don't like $cmd\n" if $cmd =~ /\.\./;
|
||||||
# yes this is rather strict, sorry.
|
# yes this is rather strict, sorry.
|
||||||
do { die "I don't like $_\n" unless $_ =~ $ADC_CMD_ARGS_PATT } for ($cmd, @args);
|
do { die "I don't like $_\n" unless $_ =~ $ADC_CMD_ARGS_PATT and $_ !~ m(\.\./) } for ($cmd, @args);
|
||||||
log_it("$GL_ADC_PATH/$ENV{SSH_ORIGINAL_COMMAND}");
|
log_it("$GL_ADC_PATH/$ENV{SSH_ORIGINAL_COMMAND}");
|
||||||
exec("$GL_ADC_PATH/$cmd", @args);
|
exec("$GL_ADC_PATH/$cmd", @args);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue