mirror of https://github.com/hak5/openwrt.git
busybox: fix handling of special characters in path when converting menuconfig
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48077lede-17.01
parent
67877462a2
commit
182dd0db16
|
@ -16,9 +16,10 @@ open FIND, "find \"$PATH\" -name Config.in |";
|
|||
while (<FIND>) {
|
||||
chomp;
|
||||
my $input = $_;
|
||||
s/^$PATH\///g;
|
||||
s/sysdeps\/linux\///g;
|
||||
my $output = $_;
|
||||
my $output = $input;
|
||||
my $replace = quotemeta($PATH);
|
||||
$output =~ s/^$replace\///g;
|
||||
$output =~ s/sysdeps\/linux\///g;
|
||||
print STDERR "$input => $output\n";
|
||||
$output =~ /^(.+)\/[^\/]+$/ and system("mkdir -p $1");
|
||||
|
||||
|
|
Loading…
Reference in New Issue