diff options
author | 2024-02-15 19:25:36 +0100 | |
---|---|---|
committer | 2024-02-18 10:25:00 +0000 | |
commit | 694bd45980a61045eb5ec07799e3b94c76db830e (patch) | |
tree | 7c3d08df4345f30c1b1ea576aa27a1db2edcd588 /net/unix/af_unix.c | |
parent | selftests: mptcp: pm nl: avoid error msg on older kernels (diff) | |
download | wireguard-linux-694bd45980a61045eb5ec07799e3b94c76db830e.tar.xz wireguard-linux-694bd45980a61045eb5ec07799e3b94c76db830e.zip |
selftests: mptcp: diag: fix bash warnings on older kernels
Since the 'Fixes' commit mentioned below, the command that is executed
in __chk_nr() helper can return nothing if the feature is not supported.
This is the case when the MPTCP CURRESTAB counter is not supported.
To avoid this warning ...
./diag.sh: line 65: [: !=: unary operator expected
... we just need to surround '$nr' with double quotes, to support an
empty string when the feature is not supported.
Fixes: 81ab772819da ("selftests: mptcp: diag: check CURRESTAB counters")
Cc: stable@vger.kernel.org
Reviewed-by: Geliang Tang <geliang@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions