diff options
Diffstat (limited to 'src/rlx_dscv_util.erl')
-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 []; |