* security.cc (get_file_attribute): Fix conditional.
This commit is contained in:
parent
ef76efc6db
commit
00dd058f7e
|
@ -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>
|
2004-04-08 Christopher Faylor <cgf@bosbc.com>
|
||||||
|
|
||||||
* child_info.h: Update CHILD_INFO_MAGIC after 2004-04-03 change.
|
* child_info.h: Update CHILD_INFO_MAGIC after 2004-04-03 change.
|
||||||
|
|
|
@ -1437,8 +1437,8 @@ get_file_attribute (int use_ntsec, HANDLE handle, const char *file,
|
||||||
|
|
||||||
if (use_ntsec && allow_ntsec && wincap.has_security ())
|
if (use_ntsec && allow_ntsec && wincap.has_security ())
|
||||||
{
|
{
|
||||||
if (handle && get_nt_object_attribute (handle, SE_FILE_OBJECT,
|
if (!handle || get_nt_object_attribute (handle, SE_FILE_OBJECT,
|
||||||
attribute, uidret, gidret))
|
attribute, uidret, gidret))
|
||||||
get_nt_attribute (file, attribute, uidret, gidret);
|
get_nt_attribute (file, attribute, uidret, gidret);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue