aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJordan Wilberding <[email protected]>2016-02-05 07:32:42 -0800
committerJordan Wilberding <[email protected]>2016-02-05 07:32:42 -0800
commitef1921571bc5e4c3aec4d3b3f36b62efba01c3fd (patch)
treed39e62604c6a8cc8175599ec00ae5f0d5dd29696 /src
parent881f693dde13bde2bc2e5fbd74c1a6468a338fce (diff)
parentb923e1b4b00ab74c1266f01c50ea4d6e97544d97 (diff)
downloadrelx-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
Diffstat (limited to 'src')
-rw-r--r--src/rlx_dscv_util.erl4
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
[];