Security fix (from bugtraq; viktor@dtek.chalmers.se).
This commit is contained in:
parent
2a525277b7
commit
d454676b49
11
net/mtr/patches/patch-aa
Normal file
11
net/mtr/patches/patch-aa
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- mtr.c.orig Thu Aug 19 09:42:43 1999
|
||||||
|
+++ mtr.c Fri Mar 3 23:16:23 2000
|
||||||
|
@@ -158,7 +158,7 @@
|
||||||
|
net_preopen_result = net_preopen ();
|
||||||
|
|
||||||
|
/* Now drop to user permissions */
|
||||||
|
- if(seteuid(getuid())) {
|
||||||
|
+ if(setuid(getuid())) {
|
||||||
|
printf("mtr: Unable to drop permissions.\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user