Remove smb_fname duplicates that just keep the same information as in fsp->fsp_name.
[samba.git] / source3 / modules / vfs_acl_common.c
index 570d14b4b2c3df35fd7c30846bd6b3be00163b4a..3334102104d99850cad7ee0c96d8d30feff289b7 100644 (file)
@@ -587,10 +587,6 @@ static int open_acl_common(vfs_handle_struct *handle,
 
        if (!file_existed && fsp->fh->fd != -1) {
                /* File was created. Inherit from parent directory. */
-               status = fsp_set_smb_fname(fsp, smb_fname);
-               if (!NT_STATUS_IS_OK(status)) {
-                       goto err;
-               }
                inherit_new_acl(handle, smb_fname, fsp, parent_desc, false);
        }