[Win32utils-devel] File.symlink

Heesob Park phasis at gmail.com
Tue Nov 19 14:47:20 UTC 2013


2013/11/19 Daniel Berger <djberg96 at gmail.com>:
> Creating a symlink in Windows requires the SE_CREATE_SYMBOLIC_LINK_NAME
> privilege. By default, that means it will fail unless run with elevated
> privileges.
> For our File.symlink method in win32-file, should we automatically (and
> temporarily) elevate the privileges to create the link? Or just let it fail
> without proper privileges?
I think that failing is fine in case of insufficient privilege just
like mklink command line tool.

C:\work>mklink LINK.rb zz.rb
You do not have sufficient privilege to perform this operation.

Park Heesob

More information about the win32utils-devel mailing list