aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src
diff options
context:
space:
mode:
authorMarcus Arendt <[email protected]>2014-09-11 10:32:13 +0200
committerMarcus Arendt <[email protected]>2014-09-11 10:32:13 +0200
commit0abec7199fcf362f139aef6976e00921c67b2d51 (patch)
tree8fbc77cc268622eb7d88b56a8eb2b39a33453774 /erts/preloaded/src
parent08c6c7b0f5cef8e3851ee23adcb9b8235f9b44d8 (diff)
parent3c248c14a0f5eeab25a38e550e672e074affb79e (diff)
downloadotp-0abec7199fcf362f139aef6976e00921c67b2d51.tar.gz
otp-0abec7199fcf362f139aef6976e00921c67b2d51.tar.bz2
otp-0abec7199fcf362f139aef6976e00921c67b2d51.zip
Merge branch 'maint'
Conflicts: erts/preloaded/ebin/erl_prim_loader.beam
Diffstat (limited to 'erts/preloaded/src')
-rw-r--r--erts/preloaded/src/erl_prim_loader.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/erts/preloaded/src/erl_prim_loader.erl b/erts/preloaded/src/erl_prim_loader.erl
index 466e0b0020..6b86a427ba 100644
--- a/erts/preloaded/src/erl_prim_loader.erl
+++ b/erts/preloaded/src/erl_prim_loader.erl
@@ -1507,7 +1507,14 @@ real_path(Name,[Path|Paths],Acc,Links) ->
[""|_] = LinkPaths ->
real_path(Name,LinkPaths++Paths,[],[ThisFile|Links]);
LinkPaths ->
- real_path(Name,LinkPaths++Paths,Acc,[ThisFile|Links])
+ % 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])
+ end
end;
_ ->
real_path(Name,Paths,This,Links)