diff options
author | Juergen Lock <nox@FreeBSD.org> | 2013-09-13 19:31:56 +0000 |
---|---|---|
committer | Juergen Lock <nox@FreeBSD.org> | 2013-09-13 19:31:56 +0000 |
commit | c2ef816c08adbc710ae8ba495aa59dbb621579a9 (patch) | |
tree | 80700ecb03ab435da9eaf0da30f6d19df69100d3 /multimedia/linux_dvbwrapper-kmod | |
parent | 48dc6dcddc75ec15f30661f2eee72aa33822954c (diff) | |
download | ports-c2ef816c08adbc710ae8ba495aa59dbb621579a9.tar.gz ports-c2ef816c08adbc710ae8ba495aa59dbb621579a9.zip |
Notes
Diffstat (limited to 'multimedia/linux_dvbwrapper-kmod')
-rw-r--r-- | multimedia/linux_dvbwrapper-kmod/Makefile | 6 | ||||
-rw-r--r-- | multimedia/linux_dvbwrapper-kmod/files/linux_dvbwrapper.c | 11 |
2 files changed, 10 insertions, 7 deletions
diff --git a/multimedia/linux_dvbwrapper-kmod/Makefile b/multimedia/linux_dvbwrapper-kmod/Makefile index cd3ca3a06522..5e834b7a3e0b 100644 --- a/multimedia/linux_dvbwrapper-kmod/Makefile +++ b/multimedia/linux_dvbwrapper-kmod/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: linux_dvbwrapper-kmod -# Date created: Thu Apr 21 17:34:08 CEST 2011 -# Whom: nox@FreeBSD.org -# +# Created by: nox@FreeBSD.org # $FreeBSD$ -# PORTNAME= linux_dvbwrapper-kmod PORTVERSION= 1.0 diff --git a/multimedia/linux_dvbwrapper-kmod/files/linux_dvbwrapper.c b/multimedia/linux_dvbwrapper-kmod/files/linux_dvbwrapper.c index c99ecdb29905..74c8791143e1 100644 --- a/multimedia/linux_dvbwrapper-kmod/files/linux_dvbwrapper.c +++ b/multimedia/linux_dvbwrapper-kmod/files/linux_dvbwrapper.c @@ -25,7 +25,7 @@ */ #include <sys/cdefs.h> -__FBSDID("$FreeBSD: /tmp/pcvs/ports/multimedia/linux_dvbwrapper-kmod/files/linux_dvbwrapper.c,v 1.3 2012-06-28 17:49:51 nox Exp $"); +__FBSDID("$FreeBSD$"); #include <sys/param.h> #include <sys/systm.h> @@ -192,6 +192,9 @@ linux_ioctl_dvb(struct thread *td, struct linux_ioctl_args *args) struct dtv_property *vp, *p; size_t l_propsiz, propsiz; vm_offset_t uvp; +#if __FreeBSD_version > 1000051 + cap_rights_t rights; +#endif l_vp = NULL; vp = NULL; @@ -299,7 +302,11 @@ linux_ioctl_dvb(struct thread *td, struct linux_ioctl_args *args) goto out2; copyout(vp, (void *)uvp, propsiz); -#if __FreeBSD_version > 900040 +#if __FreeBSD_version > 1000051 + error = fget(td, args->fd, + cap_rights_init(&rights, CAP_IOCTL), &fp); + if (error != 0) +#elif __FreeBSD_version > 900040 if ((error = fget(td, args->fd, CAP_IOCTL, &fp)) != 0) #else if ((error = fget(td, args->fd, &fp)) != 0) |