diff --git a/Fix-issues-with-Werror-format-security.patch b/Fix-issues-with-Werror-format-security.patch deleted file mode 100644 index 80c9d10f22455f1b629a86415225717b5a266df5..0000000000000000000000000000000000000000 --- a/Fix-issues-with-Werror-format-security.patch +++ /dev/null @@ -1,43 +0,0 @@ -From 455daf357da7f394763e5b93b11b3defe1f82ed1 Mon Sep 17 00:00:00 2001 -From: kretcheu -Date: Sat, 9 Oct 2021 16:37:10 -0300 -Subject: [PATCH] Fix compilation error with [-Werror=format-security] -MIME-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit - -When compiling with [-Werror=format-security] in Debian packaging occurs this error: -``` -cui.cpp: In function ‘void show_ncurses(Line**, int)’: -cui.cpp:377:73: error: format not a string literal and no format arguments [-Werror=format-security] - 377 | mvprintw(3 + 1 + i, cols - COLUMN_WIDTH_UNIT, desc_view_mode[viewMode]); - | ^ -cui.cpp:379:29: warning: zero-length gnu_printf format string [-Wformat-zero-length] - 379 | mvprintw(totalrow + 1, 0, ""); - | ^~ -``` - -This patch solve the problem. - -[]'s -kretcheu ---- - src/cui.cpp | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/cui.cpp b/src/cui.cpp -index 96df1a2..d8cb05b 100644 ---- a/src/cui.cpp -+++ b/src/cui.cpp -@@ -374,9 +374,9 @@ void show_ncurses(Line *lines[], int nproc) { - int totalrow = std::min(rows - 1, 3 + 1 + i); - mvprintw(totalrow, 0, " TOTAL %-*.*s %-*.*s %11.3f %11.3f ", - proglen, proglen, "", devlen, devlen, "", sent_global, recv_global); -- mvprintw(3 + 1 + i, cols - COLUMN_WIDTH_UNIT, desc_view_mode[viewMode]); -+ mvprintw(3 + 1 + i, cols - COLUMN_WIDTH_UNIT, "%s", desc_view_mode[viewMode]); - attroff(A_REVERSE); -- mvprintw(totalrow + 1, 0, ""); -+ mvprintw(totalrow + 1, 0, "%s", ""); - refresh(); - } - diff --git a/nethogs-0.8.7.tar.gz b/nethogs-0.8.7.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4f819ee6eafa922ae1e94bd4f146cd3207c125ef Binary files /dev/null and b/nethogs-0.8.7.tar.gz differ diff --git a/nethogs.spec b/nethogs.spec index 299e89768566157cbbb84ebfe3d8185383530bf8..1238f135b8ce78e7b9766acb92b9ec5ed91edcd6 100644 --- a/nethogs.spec +++ b/nethogs.spec @@ -1,11 +1,10 @@ Name: nethogs -Version: 0.8.6 -Release: 4 +Version: 0.8.7 +Release: 1 Summary: Nethogs is a small 'net top' tool License: GPLv2+ URL: https://github.com/raboof/nethogs/ -Source0: https://github.com/raboof/nethogs/archive/v%{version}.tar.gz -Patch0: Fix-issues-with-Werror-format-security.patch +Source0: https://github.com/raboof/nethogs/archive/v%{version}/nethogs-%{version}.tar.gz BuildRequires: gcc-c++ libpcap-devel ncurses-devel @@ -31,11 +30,14 @@ export CXXFLAGS="${CXXFLAGS} -fPIE -pie" %files %license COPYING -%doc README.md +%doc README.md INSTALL DESIGN %{_sbindir}/../local/sbin/nethogs %{_mandir}/../../local/share/man/man8/nethogs.8* %changelog +* Thu Sep 14 2023 yaoxin - 0.8.7-1 +- Update to 0.8.7 + * Mon Aug 28 2023 liyanan - 0.8.6-4 - Fix issues with Werror format security diff --git a/v0.8.6.tar.gz b/v0.8.6.tar.gz deleted file mode 100644 index c7f4ee2b040fb7e8350b7b875008150f056af89f..0000000000000000000000000000000000000000 Binary files a/v0.8.6.tar.gz and /dev/null differ