From 18d474781ff1acbc67429e2db4fa0cf9a0d3c51e Mon Sep 17 00:00:00 2001 From: green Date: Sun, 18 Feb 2001 13:30:20 +0000 Subject: Switch to using a struct xucred instead of a struct xucred when not actually in the kernel. This structure is a different size than what is currently in -CURRENT, but should hopefully be the last time any application breakage is caused there. As soon as any major inconveniences are removed, the definition of the in-kernel struct ucred should be conditionalized upon defined(_KERNEL). This also changes struct export_args to remove dependency on the constantly-changing struct ucred, as well as limiting the bounds of the size fields to the correct size. This means: a) mountd and friends won't break all the time, b) mountd and friends won't crash the kernel all the time if they don't know what they're doing wrt actual struct export_args layout. Reviewed by: bde --- usr.sbin/inetd/builtins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/inetd') diff --git a/usr.sbin/inetd/builtins.c b/usr.sbin/inetd/builtins.c index cb594a1..0083932 100644 --- a/usr.sbin/inetd/builtins.c +++ b/usr.sbin/inetd/builtins.c @@ -338,7 +338,7 @@ ident_stream(s, sep) /* Ident service (AKA "auth") */ struct sockaddr_in6 sin6[2]; #endif struct sockaddr_storage ss[2]; - struct ucred uc; + struct xucred uc; struct timeval tv = { 10, 0 -- cgit v1.1