rpms/mtr/devel mtr075-rh516603.patch,NONE,1.1 mtr.spec,1.52,1.53

Adam Tkac atkac at fedoraproject.org
Mon Dec 7 13:40:29 UTC 2009


Author: atkac

Update of /cvs/pkgs/rpms/mtr/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv22596

Modified Files:
	mtr.spec 
Added Files:
	mtr075-rh516603.patch 
Log Message:
- install mtr as SUID binary (#518828)
- use fprintf instead of perror when getaddrinfo fails (#516603)


mtr075-rh516603.patch:
 mtr.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- NEW FILE mtr075-rh516603.patch ---
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. */


Index: mtr.spec
===================================================================
RCS file: /cvs/pkgs/rpms/mtr/devel/mtr.spec,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -p -r1.52 -r1.53
--- mtr.spec	25 Sep 2009 10:03:49 -0000	1.52
+++ mtr.spec	7 Dec 2009 13:40:29 -0000	1.53
@@ -1,7 +1,7 @@
 Summary: A network diagnostic tool
 Name: mtr
 Version: 0.75
-Release: 5%{?dist}
+Release: 6%{?dist}
 Epoch:	2
 Group: Applications/Internet
 License: GPLv2+
@@ -11,6 +11,7 @@ Source1: xmtr.consolehelper
 Source2: xmtr.pam
 Source3: net-x%{name}.desktop
 Patch0: mtr-0.75-fd-flags.path
+Patch1: mtr075-rh516603.patch
 BuildRequires: ncurses-devel gtk2-devel desktop-file-utils
 
 Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -34,6 +35,7 @@ diagnostic tool.
 %prep
 %setup -q
 %patch0 -p1 -b .fd-flags
+%patch1 -p1 -b .rh516603
 
 %build
 %configure --enable-gtk2
@@ -71,7 +73,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(-,root,root,-)
 %doc AUTHORS COPYING FORMATS NEWS README SECURITY
-%attr(0755,root,root) %{_sbindir}/mtr
+%attr(4755,root,root) %{_sbindir}/mtr
 %{_mandir}/man8/*
 
 %files gtk
@@ -84,6 +86,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/pixmaps/mtr_icon.xpm
 
 %changelog
+* Mon Dec 07 2009 Adam Tkac <atkac redhat com> 2:0.75-6
+- install mtr as SUID binary (#518828)
+- use fprintf instead of perror when getaddrinfo fails (#516603)
+
 * Fri Sep 25 2009 Adam Tkac <atkac redhat com> 2:0.75-5
 - remove unneeded build requires (#525547)
 




More information about the fedora-extras-commits mailing list