diff options
author | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-05-14 17:43:23 +0000 |
---|---|---|
committer | goodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2002-05-14 17:43:23 +0000 |
commit | 67d325f49380653108c84710b379042edc050449 (patch) | |
tree | 9af887ff39c6b3d1da837b74f2a17cd81db3c40f /lib/sbin/cpp.pl | |
parent | badfa5a901641621da659cac09edaf3af91ff0a8 (diff) |
Fix bug in getting rid of /./ in pathnames.
Tom
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2814 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/sbin/cpp.pl')
-rwxr-xr-x | lib/sbin/cpp.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sbin/cpp.pl b/lib/sbin/cpp.pl index 94fffe33..58970635 100755 --- a/lib/sbin/cpp.pl +++ b/lib/sbin/cpp.pl @@ -284,9 +284,11 @@ sub FindFile } } - # Tidy up the path a bit - $fullpath =~ s,/./,/,g; + # Tidy up the path a bit + # Get rid of /./ in paths + $fullpath =~ s,/\./,/,g; + # Get new current wd. if($fullpath) { $fullpath =~ m,^(.+)/[^/]+$,; |