From: Jeremy Allison Date: Thu, 17 May 2018 16:37:23 +0000 (-0700) Subject: s3: smbd: Remove existing_unx_mode, an unused parameter to open_match_attributes(). X-Git-Tag: ldb-1.4.0~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6c03f2a9b21f445ddfda71c5d3619b759093ed3;p=thirdparty%2Fsamba.git s3: smbd: Remove existing_unx_mode, an unused parameter to open_match_attributes(). Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke --- diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 61a42e29a10..9d581a53359 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -2530,7 +2530,6 @@ static void setup_kernel_oplock_poll_open(struct timeval request_time, static bool open_match_attributes(connection_struct *conn, uint32_t old_dos_attr, uint32_t new_dos_attr, - mode_t existing_unx_mode, mode_t new_unx_mode, mode_t *returned_unx_mode) { @@ -2547,10 +2546,9 @@ static bool open_match_attributes(connection_struct *conn, } DEBUG(10,("open_match_attributes: old_dos_attr = 0x%x, " - "existing_unx_mode = 0%o, new_dos_attr = 0x%x " + "new_dos_attr = 0x%x " "returned_unx_mode = 0%o\n", (unsigned int)old_dos_attr, - (unsigned int)existing_unx_mode, (unsigned int)new_dos_attr, (unsigned int)*returned_unx_mode )); @@ -3174,7 +3172,6 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, (create_disposition == FILE_OVERWRITE_IF))) { if (!open_match_attributes(conn, existing_dos_attributes, new_dos_attributes, - smb_fname->st.st_ex_mode, unx_mode, &new_unx_mode)) { DEBUG(5,("open_file_ntcreate: attributes mismatch " "for file %s (%x %x) (0%o, 0%o)\n",