From cad35c5183c22faa1d88f5dbe2f522999a25962e Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 11 Dec 2015 14:45:37 -0800 Subject: [PATCH] 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 --- source3/smbd/nttrans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }