Author: nbd
Date: 2016-01-03 12:36:38 +0100 (Sun, 03 Jan 2016)
New Revision: 48077

Modified:
   trunk/package/utils/busybox/convert_menuconfig.pl
Log:
busybox: fix handling of special characters in path when converting menuconfig

Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/package/utils/busybox/convert_menuconfig.pl
===================================================================
--- trunk/package/utils/busybox/convert_menuconfig.pl   2016-01-03 11:36:26 UTC 
(rev 48076)
+++ trunk/package/utils/busybox/convert_menuconfig.pl   2016-01-03 11:36:38 UTC 
(rev 48077)
@@ -16,9 +16,10 @@
 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");
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to