diff options
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r-- | source3/smbd/open.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index e93485b3d8..a58cffa257 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -1513,8 +1513,8 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn, } else { /* We add aARCH to this as this mode is only used if the file is * created new. */ - unx_mode = unix_mode(conn, new_dos_attributes | aARCH, fname, - parent_dir); + unx_mode = unix_mode(conn, new_dos_attributes | aARCH, + smb_fname, parent_dir); } DEBUG(10, ("open_file_ntcreate: fname=%s, dos_attrs=0x%x " @@ -2362,7 +2362,7 @@ static NTSTATUS mkdir_internal(connection_struct *conn, posix_open = true; mode = (mode_t)(file_attributes & ~FILE_FLAG_POSIX_SEMANTICS); } else { - mode = unix_mode(conn, aDIR, smb_dname->base_name, parent_dir); + mode = unix_mode(conn, aDIR, smb_dname, parent_dir); } if (SMB_VFS_MKDIR(conn, smb_dname->base_name, mode) != 0) { |