Vector correctly through reply_openerror() (which uses the same logic).
authorJeremy Allison <jra@samba.org>
Fri, 18 Dec 2009 02:31:26 +0000 (18:31 -0800)
committerJeremy Allison <jra@samba.org>
Fri, 18 Dec 2009 02:31:26 +0000 (18:31 -0800)
Jeremy.

source3/smbd/nttrans.c

index 16f8bb592a55e21e3cd3183d06345136c2ea8e6d..be50090192df017f67d972d9e971ebd131ecffb9 100644 (file)
@@ -580,12 +580,7 @@ void reply_ntcreate_and_X(struct smb_request *req)
                        /* We have re-scheduled this call, no error. */
                        goto out;
                }
-               if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_COLLISION)) {
-                       reply_botherror(req, status, ERRDOS, ERRfilexists);
-               }
-               else {
-                       reply_nterror(req, status);
-               }
+               reply_openerror(req, status);
                goto out;
        }