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:
@@ -30,7 +30,7 @@ sub checkfile {
|
||||
my $this=shift;
|
||||
my $file=shift;
|
||||
return unless $file =~ m/^lsb-.*\.rpm$/;
|
||||
my @deps=$this->runpipe(1, "LANG=C rpm -qp -R $file");
|
||||
my @deps=$this->runpipe(1, "LANG=C rpm -qp -R '$file'");
|
||||
return 1 if grep { s/\s+//g; $_ eq 'lsb' } @deps;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user