diff options
author | pfg <pfg@FreeBSD.org> | 2012-09-27 19:10:25 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2012-09-27 19:10:25 +0000 |
commit | 17db4cd864106dba20aafa24d8c6717ec0aa080e (patch) | |
tree | b0021cc6cf8711340229a2a7f6fc07dfc953a425 /lib/libc/rpc/auth_unix.c | |
parent | 8f394b36947fe1d8e82fef172f40b2901063475d (diff) | |
download | FreeBSD-src-17db4cd864106dba20aafa24d8c6717ec0aa080e.zip FreeBSD-src-17db4cd864106dba20aafa24d8c6717ec0aa080e.tar.gz |
Complete revert of r239963:
The attempt to merge changes from the linux libtirpc caused
rpc.lockd to exit after startup under unclear conditions.
After many hours of selective experiments and inconsistent results
the conclusion is that it's better to just revert everything and
restart in a future time with a much smaller subset of the
changes.
____
MFC after: 3 days
Reported by: David Wolfskill
Tested by: David Wolfskill
Diffstat (limited to 'lib/libc/rpc/auth_unix.c')
-rw-r--r-- | lib/libc/rpc/auth_unix.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/libc/rpc/auth_unix.c b/lib/libc/rpc/auth_unix.c index 4d7a89b..c0d2548 100644 --- a/lib/libc/rpc/auth_unix.c +++ b/lib/libc/rpc/auth_unix.c @@ -94,10 +94,10 @@ struct audata { AUTH * authunix_create(machname, uid, gid, len, aup_gids) char *machname; - uid_t uid; - gid_t gid; + int uid; + int gid; int len; - gid_t *aup_gids; + int *aup_gids; { struct authunix_parms aup; char mymem[MAX_AUTH_BYTES]; @@ -207,7 +207,9 @@ authunix_create_default() abort(); if (ngids > NGRPS) ngids = NGRPS; - auth = authunix_create(machname, uid, gid, ngids, gids); + /* XXX: interface problem; those should all have been unsigned */ + auth = authunix_create(machname, (int)uid, (int)gid, ngids, + (int *)gids); free(gids); return (auth); } |