* 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:
Corinna Vinschen
2003-02-04 19:26:01 +00:00
parent 0daf256192
commit 3dbafd873e
3 changed files with 8 additions and 5 deletions

View File

@ -1853,10 +1853,6 @@ void
set_security_attribute (int attribute, PSECURITY_ATTRIBUTES psa,
void *sd_buf, DWORD sd_buf_size)
{
/* symlinks are anything for everyone! */
if ((attribute & S_IFLNK) == S_IFLNK)
attribute |= S_IRWXU | S_IRWXG | S_IRWXO;
psa->lpSecurityDescriptor = sd_buf;
InitializeSecurityDescriptor ((PSECURITY_DESCRIPTOR) sd_buf,
SECURITY_DESCRIPTOR_REVISION);