summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-01-03 12:01:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:54 -0500
commitbc20aac121edae8812e3c3392d2cd41dfdf258ec (patch)
tree9c7859ad142784911511040673df8e52b2fc6547 /source3/smbd/reply.c
parentbef14208efbf7fd10de0806185e563cd394c2860 (diff)
downloadsamba-bc20aac121edae8812e3c3392d2cd41dfdf258ec.tar.gz
samba-bc20aac121edae8812e3c3392d2cd41dfdf258ec.tar.bz2
samba-bc20aac121edae8812e3c3392d2cd41dfdf258ec.zip
r20507: smbcli_setattr("") always returns ACCESS_DENIED, test extension to follow.
Merge to 3.0.24? Volker (This used to be commit f2563ac98f8ec7af8083d2b62186753acba7a9dd)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c9
1 files changed, 9 insertions, 0 deletions
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);