From 767d12d3c221d9f3207e2f367c8b254fb7bd4429 Mon Sep 17 00:00:00 2001 From: "cls%seawood.org" Date: Thu, 26 Oct 2000 19:43:39 +0000 Subject: [PATCH] Fix makefile creation problem when full path contains meta chars. Bug 50431. Thanks to ume@mahoroba.org for the patch. git-svn-id: svn://10.0.0.236/trunk@81820 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/build/autoconf/make-makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/build/autoconf/make-makefile b/mozilla/build/autoconf/make-makefile index 00c26fe73ed..069958a7239 100755 --- a/mozilla/build/autoconf/make-makefile +++ b/mozilla/build/autoconf/make-makefile @@ -43,7 +43,8 @@ chomp $object_root; # called from "mozilla/gfx/src", then $source_subdir would be # "gfx/src/". $source_subdir = "$object_fullpath/"; -$source_subdir =~ s|^$object_root/||; +my $quoted_object_root = quotemeta($object_root); +$source_subdir =~ s|^$quoted_object_root/||; # Prefix makefiles with $source_subdir so that paths # will be relative to the top of the object tree.