summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/auth_unix.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-11-08 20:51:23 +0000
committerderaadt <deraadt@openbsd.org>1997-11-08 20:51:23 +0000
commiteb51d2268a3b8c9e952048e9c45d45acbc6df16e (patch)
treefde7e6962199c3d0dd41a396437bb80b61277f0f /lib/libc/rpc/auth_unix.c
parentdo not call abort() (diff)
downloadwireguard-openbsd-eb51d2268a3b8c9e952048e9c45d45acbc6df16e.tar.xz
wireguard-openbsd-eb51d2268a3b8c9e952048e9c45d45acbc6df16e.zip
avoid more abort()
Diffstat (limited to 'lib/libc/rpc/auth_unix.c')
-rw-r--r--lib/libc/rpc/auth_unix.c6
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));