JFLarvoire / SysToolsLib

A library of Windows and Linux system management tools
Apache License 2.0
314 stars 93 forks source link

Use SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE flag for symlink functions #35

Open darealshinji opened 7 months ago

darealshinji commented 7 months ago

Shouldn't the symlink() functions in MsvcLibX use the SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE flag? I always need to add this to the flags of CreateSymbolicLink to create links as normal user.

JFLarvoire commented 7 months ago

Sounds like a good idea. Please go ahead and submit a pull request! Also we must add a definition for the flag if needed, so that the library still builds for XP and older versions of Windows, and apps built with it use the flag when run in recent versions of Windows that support it.