git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bef1420
)
r20507: smbcli_setattr("") always returns ACCESS_DENIED, test extension to follow.
author
Volker Lendecke
<vlendec@samba.org>
Wed, 3 Jan 2007 12:01:17 +0000
(12:01 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:16:54 +0000
(12:16 -0500)
Merge to 3.0.24?
Volker
(This used to be commit
f2563ac98f8ec7af8083d2b62186753acba7a9dd
)
source3/smbd/reply.c
patch
|
blob
|
history
diff --git
a/source3/smbd/reply.c
b/source3/smbd/reply.c
index 9184a1a69607ab5a0600bc11887e83504a8860e8..63f8d0bb615351beb8186d930c7493ec8aa68b56 100644
(file)
--- 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);