0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-23 16:06:16 +00:00
termux-packages/root-packages/mtr/packet.c.patch

19 lines
494 B
Diff

--- ./packet/packet.c.orig 2021-09-10 21:20:26.554615393 +0200
+++ ./packet/packet.c 2021-09-10 21:22:52.034900909 +0200
@@ -44,15 +44,6 @@
cap_t cap;
#endif
- /* Drop any suid permissions granted */
- if (setgid(getgid()) || setuid(getuid())) {
- return -1;
- }
-
- if (geteuid() != getuid() || getegid() != getgid()) {
- return -1;
- }
-
/*
Drop all process capabilities.
This will revoke anything granted by a commandline 'setcap'