Skip to content

iproute2: exit code fixes

Stephen Hemminger netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ip: document exit codeman/man8/ip.8+4 -01 reply
2/4ip: return correct exit code on route failureip/iproute.c+1 -12 replies
3/4ip: fix exit code for rule failuresip/iprule.c+1 -10 replies
4/4ip: fix exit code for addrlabelip/ipaddrlabel.c+3 -30 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchRoopa Prabhu
1/4
2/4A-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] iproute2: exit code fixes

The exit code for ip command has always been 0 on success, 1 on syntax error, and 2 on kernel (netlink) error; but it isn't documented and there were some regressions and places it was not being done correctly.

Stephen Hemminger (4):
ip: document exit code
ip: return correct exit code on route failure
ip: fix exit code for rule failures
ip: fix exit code for addrlabel

 ip/ipaddrlabel.c | 6 +++---
 ip/iproute.c     | 2 +-
 ip/iprule.c      | 2 +-
 man/man8/ip.8    | 4 ++++
 4 files changed, 9 insertions(+), 5 deletions(-)
Signature · 1 line
2.1.4