commit | b8cf1e9ae3d5e5ec17e79c0876755594770952b7 | [log] [tgz] |
---|---|---|
author | Pavel Emelyanov <xemul@parallels.com> | Mon Aug 20 12:08:40 2012 +0400 |
committer | Stephen Hemminger <shemminger@vyatta.com> | Mon Aug 20 12:54:48 2012 -0700 |
tree | 35d0c5bbc6caf33323f3a2b3ca307a20a369c8a8 | |
parent | d89fbf3223ec6909835a28bdab6880158e18354b [diff] |
iproute: Fix errno propagation from rtnl_talk Callers of rtnl_talk check errno value for their needs. In particular, the addrs and routes restoring code validly reports success if the EEXISTS is in there. However, the errno value can be sometimes screwed up by the perror call. Thus we should only set it _after_ the message was emitted. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>