1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-22 05:57:43 +03:00

Fix error returns

(This used to be commit f5cdaacd1784d3801d638fa9984b52c57dad6ebd)
This commit is contained in:
Volker Lendecke 2007-12-02 13:34:59 +01:00
parent 72ca4a68de
commit aa6f0a0151

View File

@ -992,7 +992,12 @@ void reply_ntcreate_and_X(connection_struct *conn, struct smb_request *req)
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;
}
@ -1422,7 +1427,12 @@ static void call_nt_transact_create(connection_struct *conn,
/* 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;
}