Convert setuid/setgid users to xsetuid/xsetgid.
[platform/upstream/busybox.git] / networking / ether-wake.c
index b4fb0c2..1803d22 100644 (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);