Skip to content

Commit

Permalink
comment setuid
Browse files Browse the repository at this point in the history
  • Loading branch information
plusun committed Jul 18, 2018
1 parent e526490 commit e1920ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sbin/ping/ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ main(int argc, char *argv[])
if (prog_shutdown(sloop, SHUT_RD) == -1)
warn("Cannot shutdown for read");

if (prog_setuid(prog_getuid()) == -1)
err(EXIT_FAILURE, "setuid");
/* if (prog_setuid(prog_getuid()) == -1) */
/* err(EXIT_FAILURE, "setuid"); */

setprogname(argv[0]);

Expand Down

0 comments on commit e1920ca

Please sign in to comment.