Skip to content

Commit

Permalink
fix typo in symlink (#40026)
Browse files Browse the repository at this point in the history
(cherry picked from commit accce7f)
  • Loading branch information
KristofferC authored and staticfloat committed Dec 22, 2022
1 parent 4dda79d commit 2d1210b
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 @@ -1039,7 +1039,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 2d1210b

Please sign in to comment.