* errno.cc (errmap): Set errno to ENOENT instead of ENOSHARE throughout.
* path.cc (path_conv::check): Set to and check for ENOENT instead of ENOSHARE. * path.cc (symlink_info::check): Fix Samba 3.2.x comment.
This commit is contained in:
parent
45cda16a7f
commit
b98c66ee2c
|
@ -1,3 +1,11 @@
|
||||||
|
2009-01-11 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* errno.cc (errmap): Set errno to ENOENT instead of ENOSHARE throughout.
|
||||||
|
* path.cc (path_conv::check): Set to and check for ENOENT instead of
|
||||||
|
ENOSHARE.
|
||||||
|
|
||||||
|
* path.cc (symlink_info::check): Fix Samba 3.2.x comment.
|
||||||
|
|
||||||
2009-01-09 Corinna Vinschen <corinna@vinschen.de>
|
2009-01-09 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* mount.cc (mount_info::from_fstab_line): Always convert drive
|
* mount.cc (mount_info::from_fstab_line): Always convert drive
|
||||||
|
|
|
@ -36,8 +36,8 @@ static NO_COPY struct
|
||||||
X (ACTIVE_CONNECTIONS, EAGAIN),
|
X (ACTIVE_CONNECTIONS, EAGAIN),
|
||||||
X (ALREADY_EXISTS, EEXIST),
|
X (ALREADY_EXISTS, EEXIST),
|
||||||
X (BAD_DEVICE, ENODEV),
|
X (BAD_DEVICE, ENODEV),
|
||||||
X (BAD_NETPATH, ENOSHARE),
|
X (BAD_NETPATH, ENOENT),
|
||||||
X (BAD_NET_NAME, ENOSHARE),
|
X (BAD_NET_NAME, ENOENT),
|
||||||
X (BAD_PATHNAME, ENOENT),
|
X (BAD_PATHNAME, ENOENT),
|
||||||
X (BAD_PIPE, EINVAL),
|
X (BAD_PIPE, EINVAL),
|
||||||
X (BAD_UNIT, ENODEV),
|
X (BAD_UNIT, ENODEV),
|
||||||
|
@ -92,7 +92,7 @@ static NO_COPY struct
|
||||||
X (MOD_NOT_FOUND, ENOENT),
|
X (MOD_NOT_FOUND, ENOENT),
|
||||||
X (MORE_DATA, EMSGSIZE),
|
X (MORE_DATA, EMSGSIZE),
|
||||||
X (NEGATIVE_SEEK, EINVAL),
|
X (NEGATIVE_SEEK, EINVAL),
|
||||||
X (NETNAME_DELETED, ENOSHARE),
|
X (NETNAME_DELETED, ENOENT),
|
||||||
X (NOACCESS, EFAULT),
|
X (NOACCESS, EFAULT),
|
||||||
X (NONPAGED_SYSTEM_RESOURCES, EAGAIN),
|
X (NONPAGED_SYSTEM_RESOURCES, EAGAIN),
|
||||||
X (NONE_MAPPED, EINVAL),
|
X (NONE_MAPPED, EINVAL),
|
||||||
|
|
|
@ -901,7 +901,7 @@ is_virtual_symlink:
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else if (sym.error && sym.error != ENOENT && sym.error != ENOSHARE)
|
else if (sym.error && sym.error != ENOENT)
|
||||||
{
|
{
|
||||||
error = sym.error;
|
error = sym.error;
|
||||||
goto out;
|
goto out;
|
||||||
|
@ -996,7 +996,7 @@ out:
|
||||||
}
|
}
|
||||||
else if (isvirtual_dev (dev.devn) && fileattr == INVALID_FILE_ATTRIBUTES)
|
else if (isvirtual_dev (dev.devn) && fileattr == INVALID_FILE_ATTRIBUTES)
|
||||||
{
|
{
|
||||||
error = dev.devn == FH_NETDRIVE ? ENOSHARE : ENOENT;
|
error = ENOENT;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if (!need_directory || error)
|
else if (!need_directory || error)
|
||||||
|
@ -2162,8 +2162,8 @@ symlink_info::check (char *path, const suffix_info *suffixes, unsigned opt,
|
||||||
eabuf, easize);
|
eabuf, easize);
|
||||||
/* No right to access EAs or EAs not supported? */
|
/* No right to access EAs or EAs not supported? */
|
||||||
if (status == STATUS_ACCESS_DENIED || status == STATUS_EAS_NOT_SUPPORTED
|
if (status == STATUS_ACCESS_DENIED || status == STATUS_EAS_NOT_SUPPORTED
|
||||||
/* Or a bug in Samba 3.2.x when accessing a share's root dir which
|
/* Or a bug in Samba 3.2.x (x <= 7) when accessing a share's root dir
|
||||||
has EAs enabled? */
|
which has EAs enabled? */
|
||||||
|| status == STATUS_INVALID_PARAMETER)
|
|| status == STATUS_INVALID_PARAMETER)
|
||||||
{
|
{
|
||||||
no_ea = true;
|
no_ea = true;
|
||||||
|
|
Loading…
Reference in New Issue