diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-04-09 07:55:56 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-04-09 07:55:56 +0000 |
commit | 00dd058f7e35b1160e81534cf78142d803b0842a (patch) | |
tree | b7e2ea8818964e1650bb7b0bd15aa0ec5bdea77c /winsup/cygwin/security.cc | |
parent | ef76efc6dbe588bc79ae6f14cb34bfc241c69002 (diff) | |
download | cygnal-00dd058f7e35b1160e81534cf78142d803b0842a.tar.gz cygnal-00dd058f7e35b1160e81534cf78142d803b0842a.tar.bz2 cygnal-00dd058f7e35b1160e81534cf78142d803b0842a.zip |
* security.cc (get_file_attribute): Fix conditional.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r-- | winsup/cygwin/security.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index c7533dee0..d9a1e5f85 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -1437,8 +1437,8 @@ get_file_attribute (int use_ntsec, HANDLE handle, const char *file, if (use_ntsec && allow_ntsec && wincap.has_security ()) { - if (handle && get_nt_object_attribute (handle, SE_FILE_OBJECT, - attribute, uidret, gidret)) + if (!handle || get_nt_object_attribute (handle, SE_FILE_OBJECT, + attribute, uidret, gidret)) get_nt_attribute (file, attribute, uidret, gidret); return 0; } |