Accepting request 61238 from home:mtomaschewski:branches:network:utilities

reviewed ok Thanks

OBS-URL: https://build.opensuse.org/request/show/61238
OBS-URL: https://build.opensuse.org/package/show/network:utilities/net-tools?expand=0&rev=25
This commit is contained in:
OBS User mrdocs 2011-02-15 12:08:49 +00:00 committed by Git OBS Bridge
parent 719eb55272
commit 4b03cb790c
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,15 @@
--- netstat.c
+++ netstat.c 2011/02/15 11:22:47
@@ -899,8 +899,10 @@ static void tcp_do_one(int lnr, const ch
snprintf(buffer, sizeof(buffer), "%s",
get_sname(htons(rem_port), "tcp", flag_not & FLAG_NUM_PORT));
- if ((strlen(rem_addr) + strlen(buffer)) > 22)
- rem_addr[22 - strlen(buffer)] = '\0';
+ if (!flag_trim) {
+ if ((strlen(rem_addr) + strlen(buffer)) > 22)
+ rem_addr[22 - strlen(buffer)] = '\0';
+ }
strcat(rem_addr, ":");
strcat(rem_addr, buffer);

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Feb 15 11:37:36 UTC 2011 - mt@suse.de
- Fixed netstat to not trim foreign/remote ipv6 addresses when
the -T option is set (bnc#637490).
-------------------------------------------------------------------
Tue Jul 20 12:28:38 UTC 2010 - mt@suse.de

View File

@ -79,6 +79,7 @@ Patch44: net-tools-1.60-netrom-fopen.diff
Patch45: net-tools-1.60-doc.dif
Patch46: net-tools-1.60-netstat_retval.diff
Patch47: net-tools-1.60-hostname-ipv6.patch
Patch48: net-tools-1.60-dont-trim-foreign-addr6.diff
%description
This package contains essential programs for network administration and
@ -145,6 +146,7 @@ cd ..
%patch45
%patch46
%patch47
%patch48
%build
make config