aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/drivers/win32/win_efile.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-03-12 17:07:16 +0100
committerSverker Eriksson <[email protected]>2014-03-24 21:09:49 +0100
commit2d2ce325546bc93178d1343e2a53911b890cc259 (patch)
tree9ade83ec1d0b459ac2c6f45d5979fe8248528433 /erts/emulator/drivers/win32/win_efile.c
parentcb748a7989ed79cdac9454fe25a6b93b3b6f8393 (diff)
downloadotp-2d2ce325546bc93178d1343e2a53911b890cc259.tar.gz
otp-2d2ce325546bc93178d1343e2a53911b890cc259.tar.bz2
otp-2d2ce325546bc93178d1343e2a53911b890cc259.zip
erts: Make file:make_symlink/2 return {error,eperm} on Windows
if the user has not the privilege SE_CREATE_SYMBOLIC_LINK_NAME
Diffstat (limited to 'erts/emulator/drivers/win32/win_efile.c')
-rw-r--r--erts/emulator/drivers/win32/win_efile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/drivers/win32/win_efile.c b/erts/emulator/drivers/win32/win_efile.c
index 3236da8a98..3d3a5bcb84 100644
--- a/erts/emulator/drivers/win32/win_efile.c
+++ b/erts/emulator/drivers/win32/win_efile.c
@@ -251,6 +251,8 @@ static int errno_map(DWORD last_error) {
return EAGAIN;
case ERROR_CANT_RESOLVE_FILENAME:
return EMLINK;
+ case ERROR_PRIVILEGE_NOT_HELD:
+ return EPERM;
case ERROR_ARENA_TRASHED:
case ERROR_INVALID_BLOCK:
case ERROR_BAD_ENVIRONMENT: