busybox: fix handling of special characters in path when converting menuconfig

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 48077
master
Felix Fietkau 9 years ago
parent 67877462a2
commit 182dd0db16
  1. 7
      package/utils/busybox/convert_menuconfig.pl

@ -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…
Cancel
Save