Hello community,

here is the log from the commit of package nethogs for openSUSE:Factory checked 
in at 2016-01-12 16:13:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nethogs (Old)
 and      /work/SRC/openSUSE:Factory/.nethogs.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nethogs"

Changes:
--------
--- /work/SRC/openSUSE:Factory/nethogs/nethogs.changes  2015-08-05 
06:52:10.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.nethogs.new/nethogs.changes     2016-01-12 
16:13:41.000000000 +0100
@@ -1,0 +2,13 @@
+Wed Jan  6 22:22:37 CET 2016 - [email protected]
+- Add print_opendir_warnings_only_in_bughunt_mode.patch:
+  * upstream patch to suppress nonsensical warning
+- update to 0.8.1:
+  * Fixed buffer overflow for cmdline strings of length >= 80
+  * fix creating socket by using normal DGRAM sockets
+  * correctly display PID's up to 7 characters
+  * Get all running non-loopback devices by default
+  * take into account the terminal height when printing the 'total' row
+  * added new command line switches -s, -c, -v
+  * changed needrefresh default value from true to false
+
+-------------------------------------------------------------------

Old:
----
  nethogs-0.8.0.tar.gz

New:
----
  print_opendir_warnings_only_in_bughunt_mode.patch
  v0.8.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nethogs.spec ++++++
--- /var/tmp/diff_new_pack.1OfarR/_old  2016-01-12 16:13:42.000000000 +0100
+++ /var/tmp/diff_new_pack.1OfarR/_new  2016-01-12 16:13:42.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package nethogs
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2013 Pascal Bleser <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
@@ -18,13 +18,14 @@
 
 
 Name:           nethogs
-Version:        0.8.0
+Version:        0.8.1
 Release:        0
 Summary:        Network Bandwidth Usage Monitor
 License:        GPL-2.0+
 Group:          Productivity/Networking/Diagnostic
-Url:            http://nethogs.sourceforge.net/
-Source:         http://downloads.sf.net/nethogs/nethogs-%{version}.tar.gz
+Url:            http://raboof.github.io/nethogs/
+Source:         https://github.com/raboof/nethogs/archive/v%{version}.tar.gz
+Patch0:         print_opendir_warnings_only_in_bughunt_mode.patch
 BuildRequires:  gcc-c++
 BuildRequires:  libpcap-devel
 BuildRequires:  ncurses-devel
@@ -39,7 +40,8 @@
 gone wild and are suddenly taking up your bandwidth.
 
 %prep
-%setup -q -n %{name}
+%setup -q
+%patch0 -p1
 
 %build
 make %{?_smp_mflags} \
@@ -47,6 +49,7 @@
     bin="%{_sbindir}" \
     man8="%{_mandir}/man8" \
     CFLAGS="%{optflags}" \
+    CXXFLAGS="%{optflags}" \
     CXX="g++" \
     nethogs
 
@@ -56,12 +59,13 @@
     bin="%{buildroot}%{_sbindir}" \
     man8="%{buildroot}%{_mandir}/man8" \
     CFLAGS="%{optflags}" \
+    CXXFLAGS="%{optflags}" \
     CXX="g++" \
     install
 
 %files
 %defattr(-,root,root)
-%doc README DESIGN
+%doc COPYING README.md DESIGN
 %{_sbindir}/nethogs
 %{_mandir}/man8/nethogs.8*
 

++++++ print_opendir_warnings_only_in_bughunt_mode.patch ++++++
diff --git a/inode2prog.cpp b/inode2prog.cpp
index cfac566..e70c3d3 100644
--- a/inode2prog.cpp
+++ b/inode2prog.cpp
@@ -155,7 +155,10 @@ void get_info_for_pid(const char * pid) {
 
        if (!dir)
        {
-               std::cout << "Couldn't open dir " << dirname << ": " << 
strerror(errno) << "\n";
+               if (bughuntmode)
+               {
+                       std::cout << "Couldn't open dir " << dirname << ": " << 
strerror(errno) << "\n";
+               }
                return;
        }
 

Reply via email to