chiark / gitweb /
dgit-repos-server: Check that no args follow --ssh
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 28 Apr 2015 10:02:35 +0000 (11:02 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 May 2015 10:54:07 +0000 (11:54 +0100)
infra/dgit-repos-server

index 67a6fc5..98ec16d 100755 (executable)
@@ -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{
        ^