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/path.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/path.cc') 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, -- cgit v1.2.3