naccyde / rpms / iproute

Forked from rpms/iproute 9 months ago
Clone

Blame SOURCES/iproute2-3.10.0-misc-ss-don-t-imply-a-when-A-was-specified.patch

a4b897
From 9aeb98263755ab24bd000da8ebf256dea5f21e1f Mon Sep 17 00:00:00 2001
a4b897
From: Phil Sutter <phil@nwl.cc>
a4b897
Date: Fri, 7 Aug 2015 15:31:27 +0200
a4b897
Subject: [PATCH] misc/ss: don't imply -a when -A was specified
a4b897
a4b897
Signed-off-by: Phil Sutter <phil@nwl.cc>
a4b897
---
a4b897
 misc/ss.c | 2 ++
a4b897
 1 file changed, 2 insertions(+)
a4b897
a4b897
diff --git a/misc/ss.c b/misc/ss.c
a4b897
index c443c35..951e1eb 100644
a4b897
--- a/misc/ss.c
a4b897
+++ b/misc/ss.c
a4b897
@@ -3505,6 +3505,8 @@ int main(int argc, char *argv[])
a4b897
 			char *p, *p1;
a4b897
 			if (!saw_query) {
a4b897
 				current_filter.dbs = 0;
a4b897
+				state_filter = state_filter ?
a4b897
+				               state_filter : SS_CONN;
a4b897
 				saw_query = 1;
a4b897
 				do_default = 0;
a4b897
 			}
a4b897
-- 
a4b897
1.8.3.1
a4b897