projects
/
platform
/
upstream
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Convert setuid/setgid users to xsetuid/xsetgid.
[platform/upstream/busybox.git]
/
networking
/
arping.c
diff --git
a/networking/arping.c
b/networking/arping.c
index
6cb6076
..
5665ddb
100644
(file)
--- a/
networking/arping.c
+++ b/
networking/arping.c
@@
-262,7
+262,8
@@
int arping_main(int argc, char **argv)
s = socket(PF_PACKET, SOCK_DGRAM, 0);
ifindex = errno;
- setuid(getuid());
+ // Drop suid root privileges
+ xsetuid(getuid());
{
unsigned long opt;