summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorTim Prouty <tprouty@samba.org>2009-06-17 19:54:12 -0700
committerTim Prouty <tprouty@samba.org>2009-06-17 20:11:53 -0700
commit5eac92697ed1781e83be460d6ed7b29a154464a2 (patch)
tree7fa94022f1ac3291e3dc9e7e876f92aa30e2480a /source3/modules
parent4e3656b8d1d0bf8c0c4ade01332e7384ea890810 (diff)
downloadsamba-5eac92697ed1781e83be460d6ed7b29a154464a2.tar.gz
samba-5eac92697ed1781e83be460d6ed7b29a154464a2.tar.bz2
samba-5eac92697ed1781e83be460d6ed7b29a154464a2.zip
s3 onefs: Remove dfs resolution from create_file() now that it's being done at a higher level
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/onefs_open.c23
1 files changed, 1 insertions, 22 deletions
diff --git a/source3/modules/onefs_open.c b/source3/modules/onefs_open.c
index ef2f1fa487..8b6ae20520 100644
--- a/source3/modules/onefs_open.c
+++ b/source3/modules/onefs_open.c
@@ -2024,34 +2024,13 @@ NTSTATUS onefs_create_file(vfs_handle_struct *handle,
}
}
- /* Resolve the file name if this was a DFS pathname. */
- if ((req != NULL) && (req->flags2 & FLAGS2_DFS_PATHNAMES)) {
- char *resolved_fname;
-
- status = resolve_dfspath(talloc_tos(), conn, true,
- smb_fname->base_name,
- &resolved_fname);
-
- if (!NT_STATUS_IS_OK(status)) {
- /*
- * For PATH_NOT_COVERED we had
- * reply_botherror(req, NT_STATUS_PATH_NOT_COVERED,
- * ERRSRV, ERRbadpath);
- * Need to fix in callers
- */
- goto fail;
- }
- TALLOC_FREE(smb_fname->base_name);
- smb_fname->base_name = resolved_fname;
- }
-
status = get_full_smb_filename(talloc_tos(), smb_fname, &fname);
if (!NT_STATUS_IS_OK(status)) {
goto fail;
}
/* All file access must go through check_name() */
- status = check_name(conn, fname);
+ status = check_name(conn, smb_fname->base_name);
if (!NT_STATUS_IS_OK(status)) {
goto fail;
}