Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not create a junction (soft link) for files #471

Open
emtenet opened this issue Apr 24, 2016 · 1 comment
Open

Do not create a junction (soft link) for files #471

emtenet opened this issue Apr 24, 2016 · 1 comment
Labels

Comments

@emtenet
Copy link
Contributor

emtenet commented Apr 24, 2016

When rlx_util:symlink_or_copy/2 cannot use file:make_symlink/2 on Windows due to the
user lacking SeCreateSymbolicLinkPrivilege it tries a fall back.

The fall back is to create a junction with the mklink command. Junctions only work for directories but the mklink creates one anyway.

Any attempt to access the junction as a file (like intended) results in Access is denied.

Trying to run a release with vm.args created this way silently fails (not even a erl_crash.dump file)

@helloyan
Copy link

helloyan commented Jan 8, 2017

I face the problem when develop in windows

In E:\Dev\DM\change_cs_build\default\rel\change_cs\releases\0.1.0
dir shows
2017/01/08 21:09 vm.args [e:\Dev\DM\change_cs\config\vm.args]

the link of vm.args is a directory but link to a file , so it can't run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants