Robert Watson wrote:
> Index: sys/contrib/altq/altq/altq_cdnr.c
> ================================================== =================
> RCS file: /zoo/cvsup/FreeBSD-CVS/src/sys/contrib/altq/altq/altq_cdnr.c,v
> retrieving revision 1.2
> diff -u -r1.2 altq_cdnr.c
> --- sys/contrib/altq/altq/altq_cdnr.c 12 Jun 2004 00:57:20 -0000 1.2
> +++ sys/contrib/altq/altq/altq_cdnr.c 30 Oct 2006 17:07:54 -0000
> @@ -1262,7 +1262,9 @@
> case CDNR_GETSTATS:
> break;
> default:
> -#if (__FreeBSD_version > 400000)
> +#if (__FreeBSD_versoin > 700000)
> + if ((error = priv_check(p, PRIV_ALTQ_MANAGE)) != 0)
> +#elsif (__FreeBSD_version > 400000)
> if ((error = suser(p)) != 0)
> #else
> if ((error = suser(p->p_ucred, &p->p_acflag)) != 0)


s/versoin/version/

> Index: sys/contrib/altq/altq/altq_rio.c
> ================================================== =================
> RCS file: /zoo/cvsup/FreeBSD-CVS/src/sys/contrib/altq/altq/altq_rio.c,v
> retrieving revision 1.3
> diff -u -r1.3 altq_rio.c
> --- sys/contrib/altq/altq/altq_rio.c 10 Jun 2005 16:49:03 -0000 1.3
> +++ sys/contrib/altq/altq/altq_rio.c 30 Oct 2006 17:07:54 -0000
> @@ -531,7 +531,10 @@
> case RIO_GETSTATS:
> break;
> default:
> -#if (__FreeBSD_version > 400000)
> +#if (__FreeBSD_versoin > 700000)
> + if ((error = priv_check(p, PRIV_ALTQ_MANAGE)) != 0)
> + return (error);
> +#elsif (__FreeBSD_version > 400000)
> if ((error = suser(p)) != 0)
> return (error);
> #else


Same thing.

--
Skip
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"