* security.cc (get_file_attribute): Fix conditional.

This commit is contained in:
Corinna Vinschen 2004-04-09 07:55:56 +00:00
parent ef76efc6db
commit 00dd058f7e
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2004-04-09 Corinna Vinschen <corinna@vinschen.de>
* security.cc (get_file_attribute): Fix conditional.
2004-04-08 Christopher Faylor <cgf@bosbc.com>
* child_info.h: Update CHILD_INFO_MAGIC after 2004-04-03 change.

View File

@ -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;
}