From 90dd961fa1dd9f1a9d27913f7f0c6ffd1f5aca0b Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Wed, 8 Aug 2018 11:24:50 +0200 Subject: [PATCH] Do not use quotemeta to escape arguments on win32. Ref pandora_enterprise#2625. --- pandora_server/bin/pandora_exec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/bin/pandora_exec b/pandora_server/bin/pandora_exec index 669d902a28..4ccee8a1f9 100755 --- a/pandora_server/bin/pandora_exec +++ b/pandora_server/bin/pandora_exec @@ -36,7 +36,7 @@ my @opts = @ARGV; my $timeout = shift(@opts); my $command; foreach my $arg (@opts) { - $command .= quotemeta ($arg) . ' '; + $command .= $^O ne 'MSWin32' ? quotemeta ($arg) . ' ' : '"' . $command . '" '; } chomp ($command); my $output = '';