diff options
author | Jordan Wilberding <[email protected]> | 2016-02-05 07:32:42 -0800 |
---|---|---|
committer | Jordan Wilberding <[email protected]> | 2016-02-05 07:32:42 -0800 |
commit | ef1921571bc5e4c3aec4d3b3f36b62efba01c3fd (patch) | |
tree | d39e62604c6a8cc8175599ec00ae5f0d5dd29696 | |
parent | 881f693dde13bde2bc2e5fbd74c1a6468a338fce (diff) | |
parent | b923e1b4b00ab74c1266f01c50ea4d6e97544d97 (diff) | |
download | relx-ef1921571bc5e4c3aec4d3b3f36b62efba01c3fd.tar.gz relx-ef1921571bc5e4c3aec4d3b3f36b62efba01c3fd.tar.bz2 relx-ef1921571bc5e4c3aec4d3b3f36b62efba01c3fd.zip |
Merge pull request #443 from tsloughter/masterv3.15.0
dammit, must split the path to use prefix to check for cycles
-rw-r--r-- | src/rlx_dscv_util.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlx_dscv_util.erl b/src/rlx_dscv_util.erl index 6fe2712..4c386ad 100644 --- a/src/rlx_dscv_util.erl +++ b/src/rlx_dscv_util.erl @@ -114,8 +114,8 @@ discover_dir(ProcessDir, File, symlink) -> discover_real_symlink_dir(ProcessDir, File) -> {ok, ActualRealDir} = file:read_link(File), - case lists:prefix(iolist_to_list(filename:absname(ActualRealDir)), - iolist_to_list(filename:absname(File))) of + case lists:prefix(filename:split(iolist_to_list(filename:absname(ActualRealDir))), + filename:split(iolist_to_list(filename:absname(File)))) of true -> %% Ignore cycles []; |