From: Jeremy Allison Date: Fri, 19 Jun 2009 08:10:13 +0000 (+0200) Subject: Fix bug #6487: Missing DFS call in trans2 mkdir call. (cherry picked from commit... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=133cdb46be154eeceb080fa9db88a38d9f87c919;p=thirdparty%2Fsamba.git Fix bug #6487: Missing DFS call in trans2 mkdir call. (cherry picked from commit 1a0005e1c508cf3b170d1c7e43b94a47b2820506) --- diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c index 26c2b42ad5a..6939cef0a32 100644 --- a/source/smbd/trans2.c +++ b/source/smbd/trans2.c @@ -7095,6 +7095,21 @@ static void call_trans2mkdir(connection_struct *conn, struct smb_request *req, DEBUG(3,("call_trans2mkdir : name = %s\n", directory)); + status = resolve_dfspath(ctx, + conn, + req->flags2 & FLAGS2_DFS_PATHNAMES, + directory, + &directory); + if (!NT_STATUS_IS_OK(status)) { + if (NT_STATUS_EQUAL(status,NT_STATUS_PATH_NOT_COVERED)) { + reply_botherror(req, + NT_STATUS_PATH_NOT_COVERED, + ERRSRV, ERRbadpath); + } + reply_nterror(req, status); + return; + } + status = unix_convert(ctx, conn, directory, False, &directory, NULL, &sbuf); if (!NT_STATUS_IS_OK(status)) { reply_nterror(req, status);