mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r23846: Belt-and-braces on the msdfs bug. Ensure ELOOP maps
correctly.
Jeremy.
(This used to be commit f2cf4b6b9d
)
This commit is contained in:
parent
da0758cb04
commit
b114d3dc70
@ -396,10 +396,15 @@ NTSTATUS unix_convert(connection_struct *conn,
|
||||
* these two errors.
|
||||
*/
|
||||
|
||||
/* ENOENT and ENOTDIR both map to NT_STATUS_OBJECT_PATH_NOT_FOUND
|
||||
in the filename walk. */
|
||||
/*
|
||||
* ENOENT, ENOTDIR and ELOOP all map
|
||||
* to NT_STATUS_OBJECT_PATH_NOT_FOUND
|
||||
* in the filename walk.
|
||||
*/
|
||||
|
||||
if (errno == ENOENT || errno == ENOTDIR) {
|
||||
if (errno == ENOENT ||
|
||||
errno == ENOTDIR ||
|
||||
errno == ELOOP) {
|
||||
result = NT_STATUS_OBJECT_PATH_NOT_FOUND;
|
||||
}
|
||||
else {
|
||||
@ -410,9 +415,13 @@ NTSTATUS unix_convert(connection_struct *conn,
|
||||
|
||||
/* 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) {
|
||||
/*
|
||||
* ENOTDIR and ELOOP both map to
|
||||
* NT_STATUS_OBJECT_PATH_NOT_FOUND
|
||||
* in the filename walk.
|
||||
*/
|
||||
if (errno == ENOTDIR ||
|
||||
errno == ELOOP) {
|
||||
result = NT_STATUS_OBJECT_PATH_NOT_FOUND;
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user