* ntea.c (write_ea): Don't abort if not-samba.
This commit is contained in:
parent
4834826e92
commit
a7f0112577
|
@ -1,3 +1,7 @@
|
||||||
|
2009-09-16 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
|
* ntea.c (write_ea): Don't abort if not-samba.
|
||||||
|
|
||||||
2009-09-01 Christopher Faylor <me+cygwin@cgf.cx>
|
2009-09-01 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
* select.cc (peek_console): Always check window size when there is ANY
|
* select.cc (peek_console): Always check window size when there is ANY
|
||||||
|
|
|
@ -214,11 +214,16 @@ write_ea (HANDLE hdl, path_conv &pc, const char *name, const char *value,
|
||||||
user namespace item, we remove the leading namespace from the name.
|
user namespace item, we remove the leading namespace from the name.
|
||||||
This keeps tools like attr/getfattr/setfattr happy. Otherwise
|
This keeps tools like attr/getfattr/setfattr happy. Otherwise
|
||||||
setting the EA fails as if we don't have the permissions. */
|
setting the EA fails as if we don't have the permissions. */
|
||||||
if (pc.fs_is_samba () && ascii_strncasematch (name, "user.", 5))
|
/* Samba hides the user namespace from Windows clients. If we try to
|
||||||
|
retrieve a user namespace item, we remove the leading namespace from
|
||||||
|
the name, otherwise the search fails. */
|
||||||
|
if (!pc.fs_is_samba ())
|
||||||
|
/* nothing to do */;
|
||||||
|
else if (ascii_strncasematch (name, "user.", 5))
|
||||||
name += 5;
|
name += 5;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
set_errno (EOPNOTSUPP);
|
set_errno (ENOATTR);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue