1
0
mirror of https://github.com/samba-team/samba.git synced 2025-09-02 01:49:29 +03:00

r24475: Fix the error mapping for SMB_POSIX_PATH_OPEN.

Jeremy.
(This used to be commit 6dac315ba1)
This commit is contained in:
Jeremy Allison
2007-08-16 00:22:35 +00:00
committed by Gerald (Jerry) Carter
parent 606f10945f
commit 522418ce16

View File

@ -6515,6 +6515,18 @@ static void call_trans2setfilepathinfo(connection_struct *conn,
ERRSRV, ERRbadpath); ERRSRV, ERRbadpath);
return; return;
} }
if (info_level == SMB_POSIX_PATH_OPEN &&
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.
*/
return ERROR_BOTH(NT_STATUS_OBJECT_NAME_COLLISION,
ERRDOS, ERRfilexists);
}
reply_nterror(req, status); reply_nterror(req, status);
return; return;
} }