* security.cc (set_nt_attribute): Only call get_nt_object_security
if handle is NULL.
This commit is contained in:
@@ -1824,7 +1824,7 @@ set_nt_attribute (HANDLE handle, const char *file,
|
||||
|
||||
security_descriptor sd;
|
||||
|
||||
if (get_nt_object_security (handle, SE_FILE_OBJECT, sd)
|
||||
if ((!handle || get_nt_object_security (handle, SE_FILE_OBJECT, sd))
|
||||
&& read_sd (file, sd) <= 0)
|
||||
{
|
||||
debug_printf ("read_sd %E");
|
||||
|
Reference in New Issue
Block a user