sd-netlink: restore altname on error in rtnl_set_link_name
authorNick Rosbrook <nick.rosbrook@canonical.com>
Wed, 2 Nov 2022 09:36:14 +0000 (05:36 -0400)
committerNick Rosbrook <nick.rosbrook@canonical.com>
Thu, 15 Dec 2022 14:35:26 +0000 (09:35 -0500)
commit4d600667f8af2985850b03a46357e068d3fb8570
treede915f001f91fb246131ff04cb2fed73da28b5b0
parent080afbb57c4b2d592c5cf77ab10c6e0be74f0732
sd-netlink: restore altname on error in rtnl_set_link_name

If a current alternative name is to be used to rename a network
interface, the alternative name must be removed first. If interface
renaming fails, restore the alternative name that was deleted if
necessary.
src/libsystemd/sd-netlink/netlink-util.c