From bc20aac121edae8812e3c3392d2cd41dfdf258ec Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Wed, 3 Jan 2007 12:01:17 +0000 Subject: r20507: smbcli_setattr("") always returns ACCESS_DENIED, test extension to follow. Merge to 3.0.24? Volker (This used to be commit f2563ac98f8ec7af8083d2b62186753acba7a9dd) --- source3/smbd/reply.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 9184a1a696..63f8d0bb61 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1004,6 +1004,15 @@ 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, ".")) { + /* + * Not sure here is the right place to catch this + * condition. Might be moved to somewhere else later -- vl + */ + END_PROFILE(SMBsetatr); + return ERROR_NT(NT_STATUS_ACCESS_DENIED); + } + mode = SVAL(inbuf,smb_vwv0); mtime = srv_make_unix_date3(inbuf+smb_vwv1); -- cgit