aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorLuis Rascão <[email protected]>2014-08-12 22:40:28 +0100
committerLuis Rascão <[email protected]>2014-08-12 22:40:28 +0100
commit81c2cd3755b4adb60d498b2763ee32279f3cfc0b (patch)
tree61dcc3dc7c30aad7fb636d87edc1944c715b2592 /erts
parentab50e4e5121c2c29b8a49916f8ac89e42e37a978 (diff)
downloadotp-81c2cd3755b4adb60d498b2763ee32279f3cfc0b.tar.gz
otp-81c2cd3755b4adb60d498b2763ee32279f3cfc0b.tar.bz2
otp-81c2cd3755b4adb60d498b2763ee32279f3cfc0b.zip
fix indentation, add comment describing windows symlink creation assumption
Diffstat (limited to 'erts')
-rw-r--r--erts/preloaded/src/erl_prim_loader.erl10
1 files changed, 6 insertions, 4 deletions
diff --git a/erts/preloaded/src/erl_prim_loader.erl b/erts/preloaded/src/erl_prim_loader.erl
index dfd6151b69..6953db533c 100644
--- a/erts/preloaded/src/erl_prim_loader.erl
+++ b/erts/preloaded/src/erl_prim_loader.erl
@@ -1487,11 +1487,13 @@ real_path(Name,[Path|Paths],Acc,Links) ->
[""|_] = LinkPaths ->
real_path(Name,LinkPaths++Paths,[],[ThisFile|Links]);
LinkPaths ->
+ % windows currently does not allow creation of relative symlinks
+ % across different drives
case erlang:system_info(os_type) of
- {win32, _} ->
- real_path(Name,LinkPaths++Paths,[],[ThisFile|Links]);
- _ ->
- real_path(Name,LinkPaths++Paths,Acc,[ThisFile|Links])
+ {win32, _} ->
+ real_path(Name,LinkPaths++Paths,[],[ThisFile|Links]);
+ _ ->
+ real_path(Name,LinkPaths++Paths,Acc,[ThisFile|Links])
end
end;
_ ->