Author: jra Date: 2007-03-02 22:19:53 +0000 (Fri, 02 Mar 2007) New Revision: 21665
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21665 Log: Fix bug #4428 reported by Jason Mader <[EMAIL PROTECTED]>. Jeremy. Modified: branches/SAMBA_3_0/source/smbd/open.c branches/SAMBA_3_0_25/source/smbd/open.c Changeset: Modified: branches/SAMBA_3_0/source/smbd/open.c =================================================================== --- branches/SAMBA_3_0/source/smbd/open.c 2007-03-02 20:56:18 UTC (rev 21664) +++ branches/SAMBA_3_0/source/smbd/open.c 2007-03-02 22:19:53 UTC (rev 21665) @@ -1899,7 +1899,6 @@ uint32 file_attributes, SMB_STRUCT_STAT *psbuf) { - int ret= -1; mode_t mode; char *parent_dir; const char *dirname; @@ -1927,7 +1926,7 @@ mode = unix_mode(conn, aDIR, name, parent_dir); } - if ((ret=SMB_VFS_MKDIR(conn, name, mode)) != 0) { + if (SMB_VFS_MKDIR(conn, name, mode) != 0) { return map_nt_error_from_unix(errno); } Modified: branches/SAMBA_3_0_25/source/smbd/open.c =================================================================== --- branches/SAMBA_3_0_25/source/smbd/open.c 2007-03-02 20:56:18 UTC (rev 21664) +++ branches/SAMBA_3_0_25/source/smbd/open.c 2007-03-02 22:19:53 UTC (rev 21665) @@ -1903,7 +1903,6 @@ uint32 file_attributes, SMB_STRUCT_STAT *psbuf) { - int ret= -1; mode_t mode; char *parent_dir; const char *dirname; @@ -1931,7 +1930,7 @@ mode = unix_mode(conn, aDIR, name, parent_dir); } - if ((ret=SMB_VFS_MKDIR(conn, name, mode)) != 0) { + if (SMB_VFS_MKDIR(conn, name, mode) != 0) { return map_nt_error_from_unix(errno); }