From 3dbafd873eb4fbc587a37c06fa4e101ab4350b8e Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 4 Feb 2003 19:26:01 +0000 Subject: * path.cc (symlink): Create security attributes so that only the user can modify the symlink. * security.cc (set_security_attribute): Remove symlink special handling. --- winsup/cygwin/security.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'winsup/cygwin/security.cc') diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index 224eff438..f72b89672 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -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); -- cgit v1.2.3