summaryrefslogtreecommitdiff
path: root/sbin/ping
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-22 03:00:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-12-22 03:00:54 +0000
commita34740287ce7a6f408b47749029e29e62a63724d (patch)
tree13f8befc1c6c0e2609a6403023c6c02fb664b6fb /sbin/ping
parent89eb7cbe0b8c6777a04791593b7b4589ea36938f (diff)
Deal with _POSIX_SAVED_IDS when relinquishing privileges
Diffstat (limited to 'sbin/ping')
-rw-r--r--sbin/ping/ping.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index ea78678fc8d..c60f7b9c4f2 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping.c,v 1.11 1996/12/14 15:35:26 deraadt Exp $ */
+/* $OpenBSD: ping.c,v 1.12 1996/12/22 03:00:52 deraadt Exp $ */
/* $NetBSD: ping.c,v 1.20 1995/08/11 22:37:58 cgd Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)ping.c 8.1 (Berkeley) 6/5/93";
#else
-static char rcsid[] = "$OpenBSD: ping.c,v 1.11 1996/12/14 15:35:26 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ping.c,v 1.12 1996/12/22 03:00:52 deraadt Exp $";
#endif
#endif /* not lint */
@@ -199,6 +199,7 @@ main(argc, argv)
err(1, "socket");
/* revoke privs */
+ seteuid(getuid());
setuid(getuid());
preload = 0;