]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix extattr_list_file(2) on ZFS in case the attribute directory
authortrasz <trasz@FreeBSD.org>
Wed, 22 Jul 2009 15:15:58 +0000 (15:15 +0000)
committertrasz <trasz@FreeBSD.org>
Wed, 22 Jul 2009 15:15:58 +0000 (15:15 +0000)
commit0157e2f2cfc09080663511252b25c1803a58271a
treed6b987c66a98d37b6c8853eed9f0f7a2a5dac827
parentd00a1eab14e44b3e8b2d398cc1519dba8aa5ee68
Fix extattr_list_file(2) on ZFS in case the attribute directory
doesn't exist and user doesn't have write access to the file.
Without this fix, it returns bogus value instead of 0.  For some
reason this didn't manifest on my kernel compiled with -O0.

PR: kern/136601
Submitted by: Jaakko Heinonen <jh at saunalahti dot fi>
Approved by: re (kib)
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c