]> Git Repo - qemu.git/commitdiff
Return EOPNOTSUPP instead of ENOSYS for *xattr* syscalls
authorArnaud Patard <[email protected]>
Tue, 21 Apr 2009 18:04:18 +0000 (21:04 +0300)
committerRiku Voipio <[email protected]>
Tue, 16 Jun 2009 13:56:28 +0000 (16:56 +0300)
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 <[email protected]>
Signed-off-by: Riku Voipio <[email protected]>
linux-user/syscall.c

index 8a953492b890e58a47027b0577239ef0650fe197..d1febff7f604c853f6fbdaba93471c31a8574374 100644 (file)
@@ -6579,7 +6579,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
     case TARGET_NR_removexattr:
     case TARGET_NR_lremovexattr:
     case TARGET_NR_fremovexattr:
-        goto unimplemented_nowarn;
+        ret = -TARGET_EOPNOTSUPP;
+        break;
 #endif
 #ifdef TARGET_NR_set_thread_area
     case TARGET_NR_set_thread_area:
This page took 0.028138 seconds and 4 git commands to generate.