diff options
author | imp <imp@FreeBSD.org> | 2014-07-23 16:18:51 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2014-07-23 16:18:51 +0000 |
commit | 3393ae3fe10bebe84aedca635490b1744a527c5d (patch) | |
tree | 36dd8502a645018a79e432df7fd403da77e6754a /sys/fs/nandfs/nandfs_vnops.c | |
parent | 0ee303bbe33814a76bcc679d1134ac360bffb518 (diff) | |
download | FreeBSD-src-3393ae3fe10bebe84aedca635490b1744a527c5d.zip FreeBSD-src-3393ae3fe10bebe84aedca635490b1744a527c5d.tar.gz |
Fix typo in comment: noone -> no one.
Fix minor style(9) nits.
Diffstat (limited to 'sys/fs/nandfs/nandfs_vnops.c')
-rw-r--r-- | sys/fs/nandfs/nandfs_vnops.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/fs/nandfs/nandfs_vnops.c b/sys/fs/nandfs/nandfs_vnops.c index 0f26b19..e36aea3 100644 --- a/sys/fs/nandfs/nandfs_vnops.c +++ b/sys/fs/nandfs/nandfs_vnops.c @@ -405,8 +405,7 @@ nandfs_lookup(struct vop_cachedlookup_args *ap) error = ENOENT; if ((nameiop == CREATE || nameiop == RENAME) && islastcn) { - error = VOP_ACCESS(dvp, VWRITE, cred, - td); + error = VOP_ACCESS(dvp, VWRITE, cred, td); if (!error) { /* keep the component name */ cnp->cn_flags |= SAVENAME; @@ -787,9 +786,8 @@ nandfs_chown(struct vnode *vp, uid_t uid, gid_t gid, struct ucred *cred, node->nn_flags |= IN_CHANGE; if ((inode->i_mode & (ISUID | ISGID)) && (ouid != uid || ogid != gid)) { - if (priv_check_cred(cred, PRIV_VFS_RETAINSUGID, 0)) { + if (priv_check_cred(cred, PRIV_VFS_RETAINSUGID, 0)) inode->i_mode &= ~(ISUID | ISGID); - } } DPRINTF(VNCALL, ("%s: vp %p, cred %p, td %p - ret OK\n", __func__, vp, cred, td)); @@ -1006,7 +1004,7 @@ nandfs_check_possible(struct vnode *vp, struct vattr *vap, mode_t mode) return (EINVAL); } - /* Noone may write immutable files */ + /* No one may write immutable files */ if ((mode & VWRITE) && (VTON(vp)->nn_inode.i_flags & IMMUTABLE)) return (EPERM); @@ -1049,9 +1047,8 @@ nandfs_access(struct vop_access_args *ap) return (error); error = nandfs_check_possible(vp, &vap, accmode); - if (error) { + if (error) return (error); - } error = nandfs_check_permitted(vp, &vap, accmode, cred); |