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 = '';