diff options
author | Rob Landley <rob@landley.net> | 2006-07-16 08:06:34 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-07-16 08:06:34 +0000 |
commit | afb94ecf2bb6c53ce2a381d6ce45a426243c76d9 (patch) | |
tree | 0390f5cfb0cfd70882175f7e383a30d8cb1527cc /networking/arping.c | |
parent | 25c194fd1941a7ba67d68a09fa101bc54a756a14 (diff) | |
download | busybox-w32-afb94ecf2bb6c53ce2a381d6ce45a426243c76d9.tar.gz busybox-w32-afb94ecf2bb6c53ce2a381d6ce45a426243c76d9.tar.bz2 busybox-w32-afb94ecf2bb6c53ce2a381d6ce45a426243c76d9.zip |
Convert setuid/setgid users to xsetuid/xsetgid.
Diffstat (limited to 'networking/arping.c')
-rw-r--r-- | networking/arping.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/arping.c b/networking/arping.c index 6cb607612..5665ddb2b 100644 --- a/networking/arping.c +++ b/networking/arping.c | |||
@@ -262,7 +262,8 @@ int arping_main(int argc, char **argv) | |||
262 | s = socket(PF_PACKET, SOCK_DGRAM, 0); | 262 | s = socket(PF_PACKET, SOCK_DGRAM, 0); |
263 | ifindex = errno; | 263 | ifindex = errno; |
264 | 264 | ||
265 | setuid(getuid()); | 265 | // Drop suid root privileges |
266 | xsetuid(getuid()); | ||
266 | 267 | ||
267 | { | 268 | { |
268 | unsigned long opt; | 269 | unsigned long opt; |