Skip to content

Commit

Permalink
revoke privilege earlier - please check
Browse files Browse the repository at this point in the history
  • Loading branch information
itojun committed Dec 22, 2000
1 parent 7d82c50 commit a486467
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kame/kame/traceroute6/traceroute6.c
@@ -1,4 +1,4 @@
/* $KAME: traceroute6.c,v 1.37 2000/12/04 07:13:16 itojun Exp $ */
/* $KAME: traceroute6.c,v 1.38 2000/12/22 05:54:36 itojun Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -387,6 +387,10 @@ main(argc, argv)
exit(5);
}

/* revoke privs */
seteuid(getuid());
setuid(getuid());

/* set a minimum set of socket options */
on = 1;
/* specify to tell receiving interface */
Expand All @@ -411,10 +415,6 @@ main(argc, argv)
err(1, "setsockopt(IPV6_HOPLIMIT)");
#endif

/* revoke privs */
seteuid(getuid());
setuid(getuid());

seq = 0;

while ((ch = getopt(argc, argv, "df:g:lm:np:q:rs:w:v")) != EOF)
Expand Down

0 comments on commit a486467

Please sign in to comment.