diff options
| author | James Raynard <jraynard@FreeBSD.org> | 1996-06-10 20:13:09 +0000 |
|---|---|---|
| committer | James Raynard <jraynard@FreeBSD.org> | 1996-06-10 20:13:09 +0000 |
| commit | f12d1a5dd0b4ac959f98fc3c418b3f1e6d77bfa6 (patch) | |
| tree | 3a4e1682ef16b142e099c2139c0dbb40e61347ee /lib/libc/rpc/auth_unix.c | |
| parent | 1c346c709215b42b13b762c12a256d333b98f1bc (diff) | |
Notes
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 b63b95954c52..e96eb0879f93 100644 --- a/lib/libc/rpc/auth_unix.c +++ b/lib/libc/rpc/auth_unix.c @@ -30,7 +30,7 @@ #if defined(LIBC_SCCS) && !defined(lint) /*static char *sccsid = "from: @(#)auth_unix.c 1.19 87/08/11 Copyr 1984 Sun Micro";*/ /*static char *sccsid = "from: @(#)auth_unix.c 2.2 88/08/01 4.0 RPCSRC";*/ -static char *rcsid = "$Id: auth_unix.c,v 1.4 1995/05/30 05:41:12 rgrimes Exp $"; +static char *rcsid = "$Id: auth_unix.c,v 1.5 1995/10/22 14:51:08 phk Exp $"; #endif /* @@ -56,6 +56,8 @@ static char *rcsid = "$Id: auth_unix.c,v 1.4 1995/05/30 05:41:12 rgrimes Exp $"; #include <rpc/auth.h> #include <rpc/auth_unix.h> +bool_t xdr_opaque_auth(XDR *xdrs, struct opaque_auth *ap); + /* * Unix authenticator operations vector */ @@ -202,13 +204,13 @@ authunix_create_default() if (gethostname(machname, MAX_MACHINE_NAME) == -1) abort(); machname[MAX_MACHINE_NAME] = 0; - uid = geteuid(); - gid = getegid(); + uid = (int)geteuid(); + gid = (int)getegid(); if ((len = getgroups(NGROUPS, real_gids)) < 0) abort(); if(len > NGRPS) len = NGRPS; /* GW: turn `gid_t's into `int's */ for(i = 0; i < len; i++) { - gids[i] = real_gids[i]; + gids[i] = (int)real_gids[i]; } return (authunix_create(machname, uid, gid, len, gids)); } |
