From: Felix Fietkau Date: Sun, 3 Jan 2016 11:36:38 +0000 (+0000) Subject: busybox: fix handling of special characters in path when converting menuconfig X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=182dd0db161ac84691ef0acae832c7eb0c57d622;p=openwrt%2Fstaging%2Frmilecki.git busybox: fix handling of special characters in path when converting menuconfig Signed-off-by: Felix Fietkau SVN-Revision: 48077 --- diff --git a/package/utils/busybox/convert_menuconfig.pl b/package/utils/busybox/convert_menuconfig.pl index fd99349b65c..7342fbd8a1b 100755 --- a/package/utils/busybox/convert_menuconfig.pl +++ b/package/utils/busybox/convert_menuconfig.pl @@ -16,9 +16,10 @@ open FIND, "find \"$PATH\" -name Config.in |"; while () { 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");