Now we don't use wildcards when calling in unlink_internals()
the logic inside it serves no purpose and can be replaced with
a direct call to do_unlink() (which we will rename to unlink_internals()).
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
int ret;
struct smb2_create_blobs *posx = NULL;
+ if (dirtype == 0) {
+ dirtype = FILE_ATTRIBUTE_NORMAL;
+ }
+
DEBUG(10,("do_unlink: %s, dirtype = %d\n",
smb_fname_str_dbg(smb_fname),
dirtype));
status = NT_STATUS_NO_MEMORY;
goto out;
}
- if (dirtype == 0) {
- dirtype = FILE_ATTRIBUTE_NORMAL;
- }
status = check_name(conn, smb_fname);
if (!NT_STATUS_IS_OK(status)) {