smbd: Remove name_hash param from open_mode_check
authorVolker Lendecke <vl@samba.org>
Thu, 26 Sep 2013 21:35:15 +0000 (14:35 -0700)
committerStefan Metzmacher <metze@samba.org>
Sun, 13 Oct 2013 10:43:32 +0000 (12:43 +0200)
This came from delete_on_close handling which was factored out.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/smbd/open.c

index 6255180ad12f356e377493bae7c93fa155e4e237..5c050871a9e889fcdec6e233fcf03be4d012d28b 100644 (file)
@@ -1121,7 +1121,6 @@ static bool has_delete_on_close(struct share_mode_lock *lck,
 
 static NTSTATUS open_mode_check(connection_struct *conn,
                                struct share_mode_lock *lck,
-                               uint32_t name_hash,
                                uint32 access_mask,
                                uint32 share_access,
                                uint32 create_options,
@@ -2435,7 +2434,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
                return NT_STATUS_SHARING_VIOLATION;
        }
 
-       status = open_mode_check(conn, lck, fsp->name_hash,
+       status = open_mode_check(conn, lck,
                                 access_mask, share_access,
                                 create_options, &file_existed);
 
@@ -3173,7 +3172,7 @@ static NTSTATUS open_directory(connection_struct *conn,
                return NT_STATUS_DELETE_PENDING;
        }
 
-       status = open_mode_check(conn, lck, fsp->name_hash,
+       status = open_mode_check(conn, lck,
                                access_mask, share_access,
                                 create_options, &dir_existed);