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/path.cc | |
parent | 0daf256192b56839708082f0788c5c477d1ef9d6 (diff) | |
download | cygnal-3dbafd873eb4fbc587a37c06fa4e101ab4350b8e.tar.gz cygnal-3dbafd873eb4fbc587a37c06fa4e101ab4350b8e.tar.bz2 cygnal-3dbafd873eb4fbc587a37c06fa4e101ab4350b8e.zip |
* 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/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 1d754be33..fe6d25586 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -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, |