mtr/mtr075-rh516603.patch
Adam Tkac 92ebd991b7 - install mtr as SUID binary (#518828)
- use fprintf instead of perror when getaddrinfo fails (#516603)
2009-12-07 13:40:29 +00:00

13 lines
500 B
Diff

diff -up mtr-0.75/mtr.c.rh516603 mtr-0.75/mtr.c
--- mtr-0.75/mtr.c.rh516603 2009-12-07 14:27:27.281726685 +0100
+++ mtr-0.75/mtr.c 2009-12-07 14:28:32.574226121 +0100
@@ -402,7 +402,7 @@ int main(int argc, char **argv)
hints.ai_socktype = SOCK_DGRAM;
error = getaddrinfo( Hostname, NULL, &hints, &res );
if ( error ) {
- perror( gai_strerror(error) );
+ fprintf(stderr, "%s\n", gai_strerror(error));
exit( EXIT_FAILURE );
}
/* Convert the first addrinfo into a hostent. */