* path.cc (symlink): Create security attributes so that only the
user can modify the symlink. * security.cc (set_security_attribute): Remove symlink special handling.
This commit is contained in:
@ -2643,7 +2643,7 @@ symlink (const char *topath, const char *frompath)
|
||||
}
|
||||
|
||||
if (allow_ntsec && win32_path.has_acls ())
|
||||
set_security_attribute (S_IFLNK | S_IRWXU | S_IRWXG | S_IRWXO,
|
||||
set_security_attribute (S_IFLNK | STD_RBITS | STD_WBITS,
|
||||
&sa, alloca (4096), 4096);
|
||||
|
||||
h = CreateFile (win32_path, GENERIC_WRITE, 0, &sa,
|
||||
|
Reference in New Issue
Block a user