1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00

Fix error returns

This commit is contained in:
Volker Lendecke 2007-12-02 13:34:59 +01:00
parent 77b31ef44a
commit f5cdaacd17

View File

@ -992,7 +992,12 @@ void reply_ntcreate_and_X(connection_struct *conn, struct smb_request *req)
END_PROFILE(SMBntcreateX); END_PROFILE(SMBntcreateX);
return; 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); END_PROFILE(SMBntcreateX);
return; return;
} }
@ -1422,7 +1427,12 @@ static void call_nt_transact_create(connection_struct *conn,
/* We have re-scheduled this call, no error. */ /* We have re-scheduled this call, no error. */
return; 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; return;
} }