Skip to content

Commit

Permalink
fix typo in symlink (JuliaLang#40026)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored and antoine-levitt committed May 9, 2021
1 parent 5a421a3 commit 24c36d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ function symlink(target::AbstractString, link::AbstractString;
@static if Sys.iswindows()
# creating file/directory symlinks requires Administrator privileges
# while junction points apparently do not
if !(flags & UV_FS_SYMLINK_JUNCTION) && err == UV__EPERM
if flags & UV_FS_SYMLINK_JUNCTION == 0 && err == UV__EPERM
msg = "On Windows, creating symlinks requires Administrator privileges.\n$msg"
end
end
Expand Down

0 comments on commit 24c36d2

Please sign in to comment.