diff options
author | Christopher Faylor <me@cgf.cx> | 2003-01-26 06:42:40 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-01-26 06:42:40 +0000 |
commit | 9a751621661bab473334333b4422599bc26164a2 (patch) | |
tree | 742a43bdccdc8dec7c86ddf6813f6f82aa465c5a /winsup/cygwin/security.cc | |
parent | 989c97fe141b5869c3dfd438683b14a8bc8453ca (diff) | |
download | newlib-9a751621661bab473334333b4422599bc26164a2.zip newlib-9a751621661bab473334333b4422599bc26164a2.tar.gz newlib-9a751621661bab473334333b4422599bc26164a2.tar.bz2 |
* uinfo.cc (pwdgrp::load): Regularize strace output. Add warning for
CreateFile failure.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r-- | winsup/cygwin/security.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index 6a15b62..617ec46 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -1243,8 +1243,8 @@ get_attribute_from_acl (int * attribute, PACL acl, PSID owner_sid, | ((!(*anti & S_IWUSR)) ? S_IWUSR : 0); if (ace->Mask & FILE_EXECUTE) *flags |= ((!(*anti & S_IXOTH)) ? S_IXOTH : 0) - | ((!(*anti & S_IXGRP)) ? S_IXGRP : 0) - | ((!(*anti & S_IXUSR)) ? S_IXUSR : 0); + | ((!(*anti & S_IXGRP)) ? S_IXGRP : 0) + | ((!(*anti & S_IXUSR)) ? S_IXUSR : 0); if ((*attribute & S_IFDIR) && (ace->Mask & (FILE_WRITE_DATA | FILE_EXECUTE | FILE_DELETE_CHILD)) == (FILE_WRITE_DATA | FILE_EXECUTE)) @@ -1374,7 +1374,7 @@ get_file_attribute (int use_ntsec, const char *file, { res = get_nt_attribute (file, attribute, uidret, gidret); if (res) - { + { /* If reading the security descriptor failed, treat the file as unreadable. */ *attribute &= ~(S_IRWXU | S_IRWXG | S_IRWXO); |