Yay ! Remove a VFS entry. Removed the set_nt_acl() call,
[samba.git] / source3 / smbd / nttrans.c
index ec4126c1f74bfaa0ef6e97a98a0f72cf0366bb6a..362823d78a55258b4273be39cf78847c2e9bc649 100644 (file)
@@ -770,13 +770,7 @@ static NTSTATUS set_sd(files_struct *fsp, uint8 *data, uint32 sd_len,
                security_info_sent &= ~DACL_SECURITY_INFORMATION;
        }
 
-       if (fsp->fh->fd != -1) {
-               status = SMB_VFS_FSET_NT_ACL(fsp, security_info_sent, psd);
-       }
-       else {
-               status = SMB_VFS_SET_NT_ACL(fsp, fsp->fsp_name,
-                                           security_info_sent, psd);
-       }
+       status = SMB_VFS_FSET_NT_ACL(fsp, security_info_sent, psd);
 
        TALLOC_FREE(psd);