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>
Thu, 7 May 2009 13:31:58 +0000 (16:31 +0300)
commitd4fd2119d33630be345182565106ca27a8149087
tree68732f5c9d24495b61138de8429cdd5ef2816b9b
parentee7cc610a233e9bd6baafe07873fec7913e2f60a
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
linux-user/syscall.c