END_PROFILE(SMBntcreateX);
return;
}
- reply_nterror(req, status);
+ if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_COLLISION)) {
+ reply_botherror(req, status, ERRDOS, ERRfilexists);
+ }
+ else {
+ reply_nterror(req, status);
+ }
END_PROFILE(SMBntcreateX);
return;
}
/* We have re-scheduled this call, no error. */
return;
}
- reply_nterror(req, status);
+ if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_COLLISION)) {
+ reply_botherror(req, status, ERRDOS, ERRfilexists);
+ }
+ else {
+ reply_nterror(req, status);
+ }
return;
}