From 140c60ce7ba7aea0429d7dcbb4fc307b038150d3 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Tue, 2 Mar 2010 14:55:22 +0100 Subject: [PATCH 1/1] fix parsing of arguments (6 of them, not 5!) --- bak-git-server.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bak-git-server.pl b/bak-git-server.pl index 1a074da..d6cf7b0 100755 --- a/bak-git-server.pl +++ b/bak-git-server.pl @@ -97,7 +97,7 @@ while (my $client = $server->accept()) { my $line = <$client>; chomp($line); warn "<<< $line\n"; - my ($user,$hostname,$pwd,$command,$rel_path,$message) = split(/\s+/,$line,5); + my ($user,$hostname,$pwd,$command,$rel_path,$message) = split(/\s+/,$line,6); my $on_host = $1 if $rel_path =~ s/^([^:]+):(.+)$/$2/ && -e $1; my $path = $rel_path =~ m{^/} ? $rel_path : "$pwd/$rel_path"; -- 2.20.1