summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-12-30 03:02:59 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:16:48 -0500
commita77b3f38b9b76b830997bb876d97cec4884f6774 (patch)
tree53ec1e747660b2eaf487769141c1b3a9bcdc4759
parent8e6390a1604da9e34f1f6823399687bf38cd7380 (diff)
downloadsamba-a77b3f38b9b76b830997bb876d97cec4884f6774.tar.gz
samba-a77b3f38b9b76b830997bb876d97cec4884f6774.tar.bz2
samba-a77b3f38b9b76b830997bb876d97cec4884f6774.zip
r20412: Placeholder to remind me to write a torture test
for this error code. Jeremy. (This used to be commit 71b868611671a6c9275fce153794a0ccc150551f)
-rw-r--r--source3/smbd/trans2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 1ebdf16b8a..14c7eb8fa8 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -4871,6 +4871,13 @@ static int call_trans2mkdir(connection_struct *conn, char *inbuf, char *outbuf,
FILE_CREATE, 0, NULL, &fsp);
if (!NT_STATUS_IS_OK(status)) {
+#if 0
+ /* Do we need to do this here ? Need smbtorture test. JRA. */
+ if (!use_nt_status() && NT_STATUS_EQUAL(
+ status, NT_STATUS_OBJECT_NAME_COLLISION)) {
+ status = NT_STATUS_DOS(ERRDOS, ERRfilexists);
+ }
+#endif
return ERROR_NT(status);
}
close_file(fsp, NORMAL_CLOSE);