diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-03 11:36:38 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-03 11:36:38 +0000 |
commit | df225c3a3395746d4aed662a3c61a61aab2d7d80 (patch) | |
tree | aa2940501fd0d9c38fdeff52dfe915a43c14b7f4 | |
parent | 2c4fb814e45c5d87b75c40ac8c0cc229bfe7246b (diff) | |
download | master-187ad058-df225c3a3395746d4aed662a3c61a61aab2d7d80.tar.gz master-187ad058-df225c3a3395746d4aed662a3c61a61aab2d7d80.tar.bz2 master-187ad058-df225c3a3395746d4aed662a3c61a61aab2d7d80.zip |
busybox: fix handling of special characters in path when converting menuconfig
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48077 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | package/utils/busybox/convert_menuconfig.pl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/package/utils/busybox/convert_menuconfig.pl b/package/utils/busybox/convert_menuconfig.pl index fd99349b65..7342fbd8a1 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 (<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"); |