summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/security.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-05-28 19:50:07 +0000
committerChristopher Faylor <me@cgf.cx>2004-05-28 19:50:07 +0000
commite3778517d9c6409c9c917db83ccac20de1800a29 (patch)
tree407e958798d6f156ff0762350734b7b92cf032d8 /winsup/cygwin/security.cc
parentdccc3e5d2c6059410c12feb9e5d26f3176334011 (diff)
downloadcygnal-e3778517d9c6409c9c917db83ccac20de1800a29.tar.gz
cygnal-e3778517d9c6409c9c917db83ccac20de1800a29.tar.bz2
cygnal-e3778517d9c6409c9c917db83ccac20de1800a29.zip
* path.cc (chdir): Always use the normalized_path as posix_cwd, except if it
starts with a drive. Also perform whitespace cleanup.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r--winsup/cygwin/security.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc
index 29dd0a056..6ae52e9ff 100644
--- a/winsup/cygwin/security.cc
+++ b/winsup/cygwin/security.cc
@@ -1077,7 +1077,7 @@ out:
of the SD on success. Unfortunately NT returns
0 in `len' on success, while W2K returns the
correct size!
-
+
2003-11-26: Now the function allocates the space needed by itself so
it knows the real size and returns it in the security_descriptor object.
*/
@@ -1142,7 +1142,7 @@ write_sd (HANDLE fh, const char *file, security_descriptor &sd)
NULL)) == INVALID_HANDLE_VALUE)
break;
if (fh && (ret = NtSetSecurityObject (fh,
- DACL_SECURITY_INFORMATION
+ DACL_SECURITY_INFORMATION
| GROUP_SECURITY_INFORMATION
| OWNER_SECURITY_INFORMATION,
sd)) == STATUS_SUCCESS)
@@ -1768,7 +1768,7 @@ set_security_attribute (int attribute, PSECURITY_ATTRIBUTES psa,
InitializeSecurityDescriptor ((PSECURITY_DESCRIPTOR)psa->lpSecurityDescriptor,
SECURITY_DESCRIPTOR_REVISION);
psa->lpSecurityDescriptor = alloc_sd (geteuid32 (), getegid32 (),
- attribute, sd);
+ attribute, sd);
}
static int