Silent failures are not friendly to the user. If a command is
not supported tell the user about it.

Signed-off-by: David Ahern <d...@cumulusnetworks.com>
---
 misc/ss.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc/ss.c b/misc/ss.c
index 23fff19d9199..bd7214c85938 100644
--- a/misc/ss.c
+++ b/misc/ss.c
@@ -2264,7 +2264,7 @@ static int show_one_inet_sock(const struct sockaddr_nl 
*addr,
        if (!(diag_arg->f->families & (1 << r->idiag_family)))
                return 0;
        if (diag_arg->f->kill && kill_inet_sock(h, arg) != 0) {
-               if (errno == EOPNOTSUPP || errno == ENOENT) {
+               if (errno == ENOENT) {
                        /* Socket can't be closed, or is already closed. */
                        return 0;
                } else {
-- 
2.1.4

Reply via email to