summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-12-22 05:52:05 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-12-22 05:52:05 +0000
commitc7fdee10a430c084ce8226be9d552d4dec00b16e (patch)
treeaeae3bc77bf2c47d46f984dc1d6510a0a7ed7328 /sbin
parenteb06dcda4823c69a853ce7740b1fb621583653ac (diff)
call seteuid(getuid) too
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ping6/ping6.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index 10c4d6088cb..1ee01354e4b 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: ping6.c,v 1.19 2000/12/22 00:33:33 itojun Exp $ */
-/* $KAME: ping6.c,v 1.107 2000/12/22 00:32:44 itojun Exp $ */
+/* $OpenBSD: ping6.c,v 1.20 2000/12/22 05:52:04 itojun Exp $ */
+/* $KAME: ping6.c,v 1.108 2000/12/22 05:51:26 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -597,6 +597,7 @@ main(argc, argv)
}
/* revoke root privilege */
+ seteuid(getuid());
setuid(getuid());
if (options & F_FLOOD && options & F_INTERVAL)