smbd: Remove unused create_options from open_mode_check
authorVolker Lendecke <vl@samba.org>
Thu, 26 Sep 2013 21:42:59 +0000 (14:42 -0700)
committerStefan Metzmacher <metze@samba.org>
Sun, 13 Oct 2013 12:35:26 +0000 (14:35 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Oct 13 14:35:26 CEST 2013 on sn-devel-104

source3/smbd/open.c

index 5c050871a9e889fcdec6e233fcf03be4d012d28b..f6df03595f06ee04969b1418a103756d5221be0c 100644 (file)
@@ -1123,7 +1123,6 @@ static NTSTATUS open_mode_check(connection_struct *conn,
                                struct share_mode_lock *lck,
                                uint32 access_mask,
                                uint32 share_access,
-                               uint32 create_options,
                                bool *file_existed)
 {
        int i;
@@ -2436,7 +2435,7 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
 
        status = open_mode_check(conn, lck,
                                 access_mask, share_access,
-                                create_options, &file_existed);
+                                &file_existed);
 
        if (NT_STATUS_IS_OK(status)) {
                /* We might be going to allow this open. Check oplock
@@ -3174,7 +3173,7 @@ static NTSTATUS open_directory(connection_struct *conn,
 
        status = open_mode_check(conn, lck,
                                access_mask, share_access,
-                                create_options, &dir_existed);
+                                &dir_existed);
 
        if (!NT_STATUS_IS_OK(status)) {
                TALLOC_FREE(lck);