mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
Avoid breaking on spaces in filenames. Closes: #618636
The runpipe interface is not a good one, it would be better to use something that does not expose to the shell. As a quick fix, quote filenames in runpipe calls. Too bad if you have a quote character in a file though. Later need to find a better interface or do full shell escaping.
This commit is contained in:
@@ -166,7 +166,7 @@ sub scan {
|
||||
# Read in the file list.
|
||||
my @filelist;
|
||||
# FIXME: support gzip files too!
|
||||
foreach ($this->runpipe(0, "bzip2 -d < $file | tar -tf -")) {
|
||||
foreach ($this->runpipe(0, "bzip2 -d < '$file' | tar -tf -")) {
|
||||
chomp;
|
||||
s:^\./:/:;
|
||||
$_="/$_" unless m:^/:;
|
||||
@@ -179,7 +179,7 @@ sub scan {
|
||||
$this->distribution('Stampede');
|
||||
$this->origformat('slp');
|
||||
$this->changelogtext('');
|
||||
$this->binary_info($this->runpipe(0, "ls -l $file"));
|
||||
$this->binary_info($this->runpipe(0, "ls -l '$file'"));
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user