diff options
author | 2000-12-22 05:52:04 +0000 | |
---|---|---|
committer | 2000-12-22 05:52:04 +0000 | |
commit | 497b926112108b2863a22c671163ee157b2f2311 (patch) | |
tree | 1701696502a05605dfd1ecdf5d93cab525434670 | |
parent | Fix error pointed out by brad. (diff) | |
download | wireguard-openbsd-497b926112108b2863a22c671163ee157b2f2311.tar.xz wireguard-openbsd-497b926112108b2863a22c671163ee157b2f2311.zip |
call seteuid(getuid) too
-rw-r--r-- | sbin/ping6/ping6.c | 5 |
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) |