fd: make rights a mandatory argument to fgetvp_rights

The only caller already always passes rights.
This commit is contained in:
Mateusz Guzik 2015-09-07 20:05:56 +00:00
parent d7832811a7
commit 9af8c8b72b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287540

View File

@ -2721,11 +2721,9 @@ fgetvp_rights(struct thread *td, int fd, cap_rights_t *needrightsp,
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)