summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-08-03 12:48:05 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-08-04 23:06:19 +0100
commit0929e8c0d79bd140a1a3d459042045c0d4a2b011 (patch)
tree5bb31efaeae915b21bb51bf27b5d91e2c8d911f6 /dgit
parent36a39bc425000c2e60d126ea46f35b3e9965787e (diff)
dgit: Properly shellquote --git-builder argument to gbp
This is about to contain more exciting shell metacharacters. (Even now, it is wrong without quoting as we end up telling gbp to pass -i.git/ rather than -i\.git/ to dpkg-source.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit3
1 files changed, 2 insertions, 1 deletions
diff --git a/dgit b/dgit
index 3c94f03..9834d03 100755
--- a/dgit
+++ b/dgit
@@ -6072,7 +6072,8 @@ sub cmd_gbp_build {
}
my @cmd = opts_opt_multi_cmd @gbp_build;
- push @cmd, (qw(-us -uc --git-no-sign-tags), "--git-builder=@dbp");
+ push @cmd, (qw(-us -uc --git-no-sign-tags),
+ "--git-builder=".(shellquote @dbp));
if ($gbp_make_orig) {
my $priv = dgit_privdir();