summaryrefslogtreecommitdiff
path: root/syncfiles.pl
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-15 23:43:44 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-15 23:43:44 -0700
commitc5d8030768d1c8358958136b5d3e75f0fba448e7 (patch)
tree1eece0cfdde304a73e464637beeae4edca2511af /syncfiles.pl
parent64ca4b699831d95a9f4f09412876d1240ee11515 (diff)
downloadnasm-c5d8030768d1c8358958136b5d3e75f0fba448e7.tar.gz
syncfiles: terminate directory names at equal signs
In the case where the directory name should be removed (null pathname separator) don't search backwards past an equal sign, just in case there isn't a space after the assignment.
Diffstat (limited to 'syncfiles.pl')
-rwxr-xr-xsyncfiles.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/syncfiles.pl b/syncfiles.pl
index 57bae5a1..f7e1163b 100755
--- a/syncfiles.pl
+++ b/syncfiles.pl
@@ -18,7 +18,7 @@ sub do_transform($$) {
if ($ps eq '') {
# Remove the path separator and the preceeding directory
- $l =~ s/\S*\x02//g;
+ $l =~ s/[^\s\=]*\x02//g;
} else {
# Convert the path separator
$l =~ s/\x02/$ps/g;