diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-08 20:51:24 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-08 20:51:24 +0000 |
commit | 0f31d6e2e36a037452419362932924b98fd0fb47 (patch) | |
tree | fbf673637d51d38dfe0825a4bf956c4071afe43c | |
parent | ca9e67c91086001b071d5e06ce4ced97b0957268 (diff) |
avoid more abort()
-rw-r--r-- | lib/libc/rpc/auth_unix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/rpc/auth_unix.c b/lib/libc/rpc/auth_unix.c index 208ab44d85d..e0ba5229aae 100644 --- a/lib/libc/rpc/auth_unix.c +++ b/lib/libc/rpc/auth_unix.c @@ -28,7 +28,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: auth_unix.c,v 1.8 1997/07/17 06:36:46 deraadt Exp $"; +static char *rcsid = "$OpenBSD: auth_unix.c,v 1.9 1997/11/08 20:51:23 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ /* @@ -178,12 +178,12 @@ authunix_create_default() int gids2[NGRPS]; if (gethostname(machname, MAX_MACHINE_NAME) == -1) - abort(); + return (NULL); machname[MAX_MACHINE_NAME] = 0; uid = geteuid(); gid = getegid(); if ((len = getgroups(NGRPS, gids)) < 0) - abort(); + return (NULL); for (i = 0; i < len; i++) gids2[i] = gids[i]; return (authunix_create(machname, uid, gid, len, gids2)); |