summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-09-05 20:46:19 +0000
committerphk <phk@FreeBSD.org>2002-09-05 20:46:19 +0000
commit3303b3f624a2e38f031911047956bf9b836ed368 (patch)
tree643569cff2316327cbc84c0f684bc5e69c954723 /sys
parentdb06a743d8f6fdf3f27c9e4d225e89af2380e1dd (diff)
downloadFreeBSD-src-3303b3f624a2e38f031911047956bf9b836ed368.zip
FreeBSD-src-3303b3f624a2e38f031911047956bf9b836ed368.tar.gz
Fix an inherited style bug: compare with NOCRED instead of NULL.
Sponsored by: DARPA & NAI Labs.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 31ecb5b..631fa72 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -3553,7 +3553,7 @@ extattr_check_cred(struct vnode *vp, int attrnamespace,
/*
* Kernel-invoked always succeeds.
*/
- if (cred == NULL)
+ if (cred == NOCRED)
return (0);
/*
OpenPOWER on IntegriCloud