* security.cc (set_nt_attribute): Only call get_nt_object_security

if handle is NULL.
This commit is contained in:
Corinna Vinschen 2004-04-13 20:45:14 +00:00
parent 854c870051
commit 29b6b8ca64
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-04-13 Corinna Vinschen <corinna@vinschen.de>
* security.cc (set_nt_attribute): Only call get_nt_object_security
if handle is NULL.
2004-04-13 Corinna Vinschen <corinna@vinschen.de>
* dir.cc (mkdir): Call set_file_attribute with additional handle

View File

@ -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");