From: Ian Jackson Date: Tue, 28 Apr 2015 10:02:35 +0000 (+0100) Subject: dgit-repos-server: Check that no args follow --ssh X-Git-Tag: debian/0.30~215 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=8a2c3aa997480f715f703b01be7568038eb82fd8;ds=inline dgit-repos-server: Check that no args follow --ssh --- diff --git a/infra/dgit-repos-server b/infra/dgit-repos-server index 67a6fc51..98ec16d9 100755 --- a/infra/dgit-repos-server +++ b/infra/dgit-repos-server @@ -798,6 +798,8 @@ our @hookenvs = qw(distro suitesfile policyhook keyrings dgitrepos); # workrepo and destrepo handled ad-hoc sub mode_ssh () { + die if @ARGV; + my $cmd = $ENV{'SSH_ORIGINAL_COMMAND'}; $cmd =~ m{ ^