diff options
author | rmh <rmh@FreeBSD.org> | 2013-06-30 23:14:55 +0000 |
---|---|---|
committer | rmh <rmh@FreeBSD.org> | 2013-06-30 23:14:55 +0000 |
commit | 81396ac4d6991043acbdb2f768306335d3db31f2 (patch) | |
tree | e0db5bcc19bd281b1c207b1e15ddd0961fcefd09 /sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_acl.c | |
parent | 1db16779a5401fa798771dadcc4e78be25374a9b (diff) | |
download | FreeBSD-src-81396ac4d6991043acbdb2f768306335d3db31f2.zip FreeBSD-src-81396ac4d6991043acbdb2f768306335d3db31f2.tar.gz |
Enable kernel-specific code for FreeBSD also on other systems that use
the kernel of FreeBSD.
Reviewed by: pjd
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_acl.c')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_acl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_acl.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_acl.c index 3200e7e..6545dc2 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_acl.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_acl.c @@ -1683,7 +1683,7 @@ zfs_acl_ids_create(znode_t *dzp, int flag, vattr_t *vap, cred_t *cr, } else { acl_ids->z_fgid = zfs_fuid_create_cred(zfsvfs, ZFS_GROUP, cr, &acl_ids->z_fuidp); -#ifdef __FreeBSD__ +#ifdef __FreeBSD_kernel__ gid = acl_ids->z_fgid = dzp->z_gid; #else gid = crgetgid(cr); @@ -2374,7 +2374,7 @@ zfs_zaccess(znode_t *zp, int mode, int flags, boolean_t skipaclchk, cred_t *cr) is_attr = ((zp->z_pflags & ZFS_XATTR) && (ZTOV(zp)->v_type == VDIR)); -#ifdef __FreeBSD__ +#ifdef __FreeBSD_kernel__ /* * In FreeBSD, we don't care about permissions of individual ADS. * Note that not checking them is not just an optimization - without |