1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r24470: Start fixing up the mapping of OBJECT_NAME_COLLISION

to DOS error ERRDOS, ERRfilexists on open calls.
Jeremy.
(This used to be commit 4674486450)
This commit is contained in:
Jeremy Allison 2007-08-15 23:05:49 +00:00 committed by Gerald (Jerry) Carter
parent ed70bc0d8e
commit fd9c413786

View File

@ -913,6 +913,17 @@ static void call_trans2open(connection_struct *conn,
/* We have re-scheduled this call. */
return;
}
if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_COLLISION)) {
/*
* We hit an existing file, and if we're returning DOS
* error codes OBJECT_NAME_COLLISION would map to
* ERRDOS/183, we need to return ERRDOS/80, see bug
* 4852.
*/
reply_botherror(req, NT_STATUS_OBJECT_NAME_COLLISION,
ERRDOS, ERRfilexists);
return;
}
reply_nterror(req, status);
return;
}