Return EOPNOTSUPP instead of ENOSYS for *xattr* syscalls
authorArnaud Patard <arnaud.patard@rtp-net.org>
Tue, 21 Apr 2009 18:04:18 +0000 (21:04 +0300)
committerRiku Voipio <riku.voipio@nokia.com>
Tue, 16 Jun 2009 13:56:28 +0000 (16:56 +0300)
commit435605cc80efdd594ee1cc3792525db7ca0093b1
tree407a243e5d0672454317ab93da376dc5626468d4
parent0d35062d438b072747c0b05e604ccb243fce7f13
Return EOPNOTSUPP instead of ENOSYS for *xattr* syscalls

In current code, we're sending ENOSYS to target when a syscall for the
xattrs is done. This makes applications like ls complain loudly about
that and breaks scripts parsing the output. Moreover, iirc, implemented
features of filesystems are are sending EOPNOTSUPP (I've not checked so
I may be a little bit wrong on that...).
So, I'm proposing to return -EOPNOTSUPP and make ls happy

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
linux-user/syscall.c