Control: tags 925774 + patch
Control: tags 925774 + pending

Dear maintainer,

I've prepared an NMU for mahimahi (versioned as 0.98-1.1) and
uploaded it to mentors for sponsoring. Please feel free to tell me if I
should remove it.

--
Regards
Sudip


diff -Nru mahimahi-0.98/debian/changelog mahimahi-0.98/debian/changelog
--- mahimahi-0.98/debian/changelog      2017-12-04 23:57:28.000000000 +0000
+++ mahimahi-0.98/debian/changelog      2020-03-08 17:06:44.000000000 +0000
@@ -1,3 +1,10 @@
+mahimahi (0.98-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix ftbfs with GCC-9. (Closes: #925774)
+
+ -- Sudip Mukherjee <sudipm.mukher...@gmail.com>  Sun, 08 Mar 2020 17:06:44 
+0000
+
 mahimahi (0.98-1) unstable; urgency=medium
 
   * Fix FTBFS on glibc 2.25 (Closes: #882623)
diff -Nru mahimahi-0.98/debian/patches/fix_gcc9.patch 
mahimahi-0.98/debian/patches/fix_gcc9.patch
--- mahimahi-0.98/debian/patches/fix_gcc9.patch 1970-01-01 01:00:00.000000000 
+0100
+++ mahimahi-0.98/debian/patches/fix_gcc9.patch 2020-03-08 17:06:44.000000000 
+0000
@@ -0,0 +1,16 @@
+Description: Copy the string keeping space for null byte.
+Author: Sudip Mukherjee <sudipm.mukher...@gmail.com>
+
+---
+
+--- mahimahi-0.98.orig/src/util/netdevice.cc
++++ mahimahi-0.98/src/util/netdevice.cc
+@@ -35,7 +35,7 @@ void interface_ioctl( FileDescriptor & f
+ {
+     ifreq ifr;
+     zero( ifr );
+-    strncpy( ifr.ifr_name, name.c_str(), IFNAMSIZ ); /* interface name */
++    strncpy( ifr.ifr_name, name.c_str(), IFNAMSIZ -1 ); /* interface name */
+ 
+     ifr_adjustment( ifr );
+ 
diff -Nru mahimahi-0.98/debian/patches/series 
mahimahi-0.98/debian/patches/series
--- mahimahi-0.98/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ mahimahi-0.98/debian/patches/series 2020-03-08 17:06:44.000000000 +0000
@@ -0,0 +1 @@
+fix_gcc9.patch

Reply via email to