mirror of
https://github.com/samba-team/samba.git
synced 2025-03-05 20:58:40 +03:00
r20722: RAW-CHKPATH should now pass, build farm should
go back to normal. Sorry about that. Jeremy. (This used to be commit d4127034fb89185fe7464d57c9f56f7914da6141)
This commit is contained in:
parent
dd5e9e2ae7
commit
50b3dacb52
@ -391,15 +391,24 @@ NTSTATUS unix_convert(connection_struct *conn,
|
||||
* Windows applications depend on the difference between
|
||||
* these two errors.
|
||||
*/
|
||||
if (errno == ENOENT) {
|
||||
|
||||
/* ENOENT and ENOTDIR both map to NT_STATUS_OBJECT_PATH_NOT_FOUND
|
||||
in the filename walk. */
|
||||
|
||||
if (errno == ENOENT || errno == ENOTDIR) {
|
||||
return NT_STATUS_OBJECT_PATH_NOT_FOUND;
|
||||
}
|
||||
return map_nt_error_from_unix(errno);
|
||||
}
|
||||
|
||||
if (errno == ENOTDIR) {
|
||||
/* Name exists but is not a directory. */
|
||||
return map_nt_error_from_unix(ENOTDIR);
|
||||
/* ENOENT is the only valid error here. */
|
||||
if (errno != ENOENT) {
|
||||
/* ENOENT and ENOTDIR both map to NT_STATUS_OBJECT_PATH_NOT_FOUND
|
||||
in the filename walk. */
|
||||
if (errno == ENOTDIR) {
|
||||
return NT_STATUS_OBJECT_PATH_NOT_FOUND;
|
||||
}
|
||||
return map_nt_error_from_unix(errno);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user