diff options
author | Dima Dorfman <dd@FreeBSD.org> | 2002-02-27 04:45:37 +0000 |
---|---|---|
committer | Dima Dorfman <dd@FreeBSD.org> | 2002-02-27 04:45:37 +0000 |
commit | 76183f345377df655cfb357a53d52aa045fa8073 (patch) | |
tree | b9bd8d438620748c0c88ed7a994eb55f8d617278 /usr.sbin/inetd/builtins.c | |
parent | b7eeb587f6c0aa1aa84ed6cca74ad7ec43ed8019 (diff) | |
download | src-76183f345377df655cfb357a53d52aa045fa8073.tar.gz src-76183f345377df655cfb357a53d52aa045fa8073.zip |
Introduce a version field to `struct xucred' in place of one of the
spares (the size of the field was changed from u_short to u_int to
reflect what it really ends up being). Accordingly, change users of
xucred to set and check this field as appropriate. In the kernel,
this is being done inside the new cru2x() routine which takes a
`struct ucred' and fills out a `struct xucred' according to the
former. This also has the pleasant sideaffect of removing some
duplicate code.
Reviewed by: rwatson
Notes
Notes:
svn path=/head/; revision=91354
Diffstat (limited to 'usr.sbin/inetd/builtins.c')
-rw-r--r-- | usr.sbin/inetd/builtins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/inetd/builtins.c b/usr.sbin/inetd/builtins.c index 433c645aadc3..08c3c567bbea 100644 --- a/usr.sbin/inetd/builtins.c +++ b/usr.sbin/inetd/builtins.c @@ -569,7 +569,7 @@ ident_stream(s, sep) /* Ident service (AKA "auth") */ getcredfail = EAFNOSUPPORT; break; } - if (getcredfail != 0) { + if (getcredfail != 0 || uc.cr_version != XUCRED_VERSION) { if (*idbuf == '\0') iderror(lport, fport, s, getcredfail == ENOENT ? ID_NOUSER : ID_UNKNOWN); |