diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2003-02-04 19:26:01 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2003-02-04 19:26:01 +0000 |
commit | 3dbafd873eb4fbc587a37c06fa4e101ab4350b8e (patch) | |
tree | 0bbceca6654285468da1c67cfda92866e8c23a9b /winsup/cygwin/security.cc | |
parent | 0daf256192b56839708082f0788c5c477d1ef9d6 (diff) | |
download | newlib-3dbafd873eb4fbc587a37c06fa4e101ab4350b8e.zip newlib-3dbafd873eb4fbc587a37c06fa4e101ab4350b8e.tar.gz newlib-3dbafd873eb4fbc587a37c06fa4e101ab4350b8e.tar.bz2 |
* path.cc (symlink): Create security attributes so that only the
user can modify the symlink.
* security.cc (set_security_attribute): Remove symlink special
handling.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r-- | winsup/cygwin/security.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index 224eff4..f72b896 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); |