Skip to content

Commit

Permalink
createSymbolicLinkUnpriv: include unpriv flag when calling API
Browse files Browse the repository at this point in the history
Actually fixes haskell#83.
  • Loading branch information
Rufflewind committed May 25, 2018
1 parent f6face0 commit 76e4c21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion System/Directory/Internal/Windows.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ createSymbolicLinkUnpriv link _target _isDir =
call pLink pTarget flags win32_sYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE
where
call pLink pTarget flags unpriv = do
status <- c_CreateSymbolicLink pLink pTarget flags
status <- c_CreateSymbolicLink pLink pTarget (flags .|. unpriv)
when (status == 0) $ do
e <- Win32.getLastError
case () of
Expand Down

0 comments on commit 76e4c21

Please sign in to comment.