From 2b1760297f3c61aa5f71fc548c51dae8de3cc885 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 4 Jan 2007 22:01:36 +0000 Subject: [PATCH] r20532: From Volker... "smbcli_setattr("") always returns ACCESS_DENIED, test extension to follow. Merge to 3.0.24?" Yep (with slight optimization). Jeremy. (This used to be commit dcc7bca1adbc69f348d46291ec2cbfaf5d8486bc) --- source3/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 63f8d0bb615..3ebab184346 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1004,7 +1004,7 @@ int reply_setatr(connection_struct *conn, char *inbuf,char *outbuf, int dum_size return ERROR_NT(NT_STATUS_OBJECT_PATH_NOT_FOUND); } - if (strequal(fname, ".")) { + if (fname[0] == '.' && fname[1] == '\0') { /* * Not sure here is the right place to catch this * condition. Might be moved to somewhere else later -- vl -- 2.11.4.GIT