From: Jeremy Allison Date: Fri, 11 Dec 2015 22:45:37 +0000 (-0800) Subject: s3: smbd: Moving lp_posix_pathnames() out of the lower-level code. X-Git-Tag: ldb-1.1.25~53 X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=cad35c5183c22faa1d88f5dbe2f522999a25962e;p=samba.git s3: smbd: Moving lp_posix_pathnames() out of the lower-level code. Prepare to remove lp_posix_pathnames() out of ms_has_wild(). Check before calls to ms_has_wild(). Fixup reply_ntrename(). Signed-off-by: Jeremy Allison Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 19c7153e22d..098d88bce2d 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -1548,7 +1548,7 @@ void reply_ntrename(struct smb_request *req) goto out; } - if (ms_has_wild(oldname)) { + if (!lp_posix_pathnames() && ms_has_wild(oldname)) { reply_nterror(req, NT_STATUS_OBJECT_PATH_SYNTAX_BAD); goto out; }