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 67a6fc5118348cbb82f865248ecdd37a9866af95..98ec16d9b4e382540ffd6ec59a07f307be5d5446 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{
        ^