diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-06-15 23:43:44 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-06-15 23:43:44 -0700 |
commit | c5d8030768d1c8358958136b5d3e75f0fba448e7 (patch) | |
tree | 1eece0cfdde304a73e464637beeae4edca2511af /syncfiles.pl | |
parent | 64ca4b699831d95a9f4f09412876d1240ee11515 (diff) | |
download | nasm-c5d8030768d1c8358958136b5d3e75f0fba448e7.tar.gz nasm-c5d8030768d1c8358958136b5d3e75f0fba448e7.tar.bz2 nasm-c5d8030768d1c8358958136b5d3e75f0fba448e7.zip |
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-x | syncfiles.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/syncfiles.pl b/syncfiles.pl index 57bae5a..f7e1163 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; |