Skip to content
Snippets Groups Projects
Commit 7323acd9 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Bugfix.

Rev: bin/fake_dynamic_load.pike:1.3
parent 89ae38de
Branches
Tags
No related merge requests found
...@@ -73,6 +73,12 @@ string low_strip_other_files(string data, string s) ...@@ -73,6 +73,12 @@ string low_strip_other_files(string data, string s)
{ {
string dir=my_dirname(file); string dir=my_dirname(file);
on= dir==current_dir || dir==source_dir || dir==target_dir; on= dir==current_dir || dir==source_dir || dir==target_dir;
if (!on) {
// No match yet. check if it's a suffix.
on = (dir == current_dir[sizeof(current_dir) - sizeof(dir)..]) ||
(dir == source_dir[sizeof(source_dir) - sizeof(dir)..]) ||
(dir == target_dir[sizeof(target_dir) - sizeof(dir)..]);
}
} }
if(on) ret+="#"+x; if(on) ret+="#"+x;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment