Bug 1405068: Don't use a shell for running subcommands in unwrap_full_update.pl. r=bhearsum

MozReview-Commit-ID: JDhndUIhOT1

--HG--
extra : rebase_source : 5e072046f53127c04ee60292247139c2e1c0ac19
This commit is contained in:
Tom Prince 2017-10-02 12:21:55 -06:00
Родитель bed30dcd29
Коммит 031841670d
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -75,7 +75,7 @@ $archive = $ARGV[0];
@marentries = `"$MAR" -t "$archive"`;
$? && die("Couldn't run \"$MAR\" -t");
system("$MAR -x \"$archive\"") == 0 ||
system($MAR, "-x", $archive) == 0 ||
die "Couldn't run $MAR -x";
# Try to determine if the mar file contains bzip2 compressed files and if not
@ -100,15 +100,15 @@ foreach (@marentries) {
print "Decompressing: " . $file . "\n";
if ($MAR_OLD_FORMAT) {
system("mv \"$file\" \"$file.bz2\"") == 0 ||
system("mv", $file, "$file.bz2") == 0 ||
die "Couldn't mv \"$file\"";
system("\"$BZIP2\" -d \"$file.bz2\"") == 0 ||
system($BZIP2, "-d", "$file.bz2") == 0 ||
die "Couldn't decompress \"$file\"";
}
else {
system("mv \"$file\" \"$file.xz\"") == 0 ||
system("mv", $file, "$file.xz") == 0 ||
die "Couldn't mv \"$file\"";
system("\"$XZ\" -d \"$file.xz\"") == 0 ||
system($XZ, "-d", "$file.xz") == 0 ||
die "Couldn't decompress \"$file\"";
}
}