svn commit: r287540 - head/sys/kern
Mateusz Guzik
mjg at FreeBSD.org
Mon Sep 7 20:05:57 UTC 2015
Author: mjg
Date: Mon Sep 7 20:05:56 2015
New Revision: 287540
URL: https://svnweb.freebsd.org/changeset/base/287540
Log:
fd: make rights a mandatory argument to fgetvp_rights
The only caller already always passes rights.
Modified:
head/sys/kern/kern_descrip.c
Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c Mon Sep 7 20:02:56 2015 (r287539)
+++ head/sys/kern/kern_descrip.c Mon Sep 7 20:05:56 2015 (r287540)
@@ -2721,11 +2721,9 @@ fgetvp_rights(struct thread *td, int fd,
return (EBADF);
#ifdef CAPABILITIES
- if (needrightsp != NULL) {
- error = cap_check(cap_rights(fdp, fd), needrightsp);
- if (error != 0)
- return (error);
- }
+ error = cap_check(cap_rights(fdp, fd), needrightsp);
+ if (error != 0)
+ return (error);
#endif
if (fp->f_vnode == NULL)
More information about the svn-src-head
mailing list