GNU bug report logs - #29947
Replace 'netstat' with 'ss'

Previous Next

Package: gzip;

Reported by: Kristýna Streitová <kstreitova <at> suse.com>

Date: Tue, 2 Jan 2018 17:10:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#29947: closed (Replace 'netstat' with 'ss')
Date: Wed, 03 Jan 2018 03:08:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 2 Jan 2018 19:07:22 -0800
with message-id <7ed5a4bd-28af-837b-e3cc-db9661a426d7 <at> cs.ucla.edu>
and subject line Re: bug#29947: Replace 'netstat' with 'ss'
has caused the debbugs.gnu.org bug report #29947,
regarding Replace 'netstat' with 'ss'
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
29947: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=29947
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Kristýna Streitová <kstreitova <at> suse.com>
To: bug-gzip <at> gnu.org
Subject: Replace 'netstat' with 'ss'
Date: Tue, 2 Jan 2018 16:27:50 +0100
Hello,

Since 'netstat' command (included in the 'net-tools' package) is
deprecated, we should switch from 'netstat -n' to 'ss -n' in
tests/init.sh file.

I'm adding a simple patch:

Index: gzip-1.8/tests/init.sh
===================================================================
--- gzip-1.8.orig/tests/init.sh
+++ gzip-1.8/tests/init.sh
@@ -525,7 +525,7 @@ rand_bytes_ ()
   fi

   n_plus_50_=`expr $n_ + 50`
-  cmds_='date; date +%N; free; who -a; w; ps auxww; ps ef; netstat -n'
+  cmds_='date; date +%N; free; who -a; w; ps auxww; ps ef; ss -n'
   data_=` (eval "$cmds_") 2>&1 | gzip `

   # Ensure that $data_ has length at least 50+$n_


Best regards,
Kristyna Streitova


[Message part 3 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Kristýna Streitová <kstreitova <at> suse.com>,
 29947-done <at> debbugs.gnu.org
Subject: Re: bug#29947: Replace 'netstat' with 'ss'
Date: Tue, 2 Jan 2018 19:07:22 -0800
[Message part 4 (text/plain, inline)]
Thanks. I installed the attached slightly-simpler patch into Gnulib, and it 
should appear in the next Gzip release.
[0001-test-framework-sh-avoid-netstat.txt (text/plain, attachment)]

This bug report was last modified 7 years and 146 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.