From 8a2c3aa997480f715f703b01be7568038eb82fd8 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 28 Apr 2015 11:02:35 +0100 Subject: dgit-repos-server: Check that no args follow --ssh --- infra/dgit-repos-server | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infra/dgit-repos-server b/infra/dgit-repos-server index 67a6fc5..98ec16d 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{ ^ -- cgit v1.2.3