fix getxattr02 case with errno EPERM

Before kernel 3.0.0, getxattr02 will set errno with 'EPERM' when the file is
not a regular file and directory.
Refer to commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=55b23bde19c08f14127a27d461a4e079942c7258

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Reviewed-by: Eryu Guan <eguan@redhat.com>
1 file changed