Convert setuid/setgid users to xsetuid/xsetgid.

This commit is contained in:
Rob Landley
2006-07-16 08:06:34 +00:00
parent 25c194fd19
commit afb94ecf2b
6 changed files with 12 additions and 16 deletions

View File

@@ -145,7 +145,7 @@ int etherwake_main(int argc, char *argv[])
s = make_socket();
/* now that we have a raw socket we can drop root */
setuid(getuid());
xsetuid(getuid());
/* look up the dest mac address */
get_dest_addr(argv[optind], &eaddr);