]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-netlink: do not swap old name and alternative name
authorNick Rosbrook <nick.rosbrook@canonical.com>
Fri, 2 Dec 2022 20:26:18 +0000 (15:26 -0500)
committerNick Rosbrook <nick.rosbrook@canonical.com>
Thu, 15 Dec 2022 14:21:53 +0000 (09:21 -0500)
commit080afbb57c4b2d592c5cf77ab10c6e0be74f0732
tree6af623c2a3727356e2a12b3298b4cda4cc3f719e
parentd0b31efc1ab7f6826ad834cf6b9e371bf73776aa
sd-netlink: do not swap old name and alternative name

Commit 434a348380 ("netlink: do not fail when new interface name is
already used as an alternative name") added logic to set the old
interface name as an alternative name, but only when the new name is
currently an alternative name. This is not the desired outcome in most
cases, and the important part of this commit was to delete the new name
from the list of alternative names if necessary.
src/libsystemd/sd-netlink/netlink-util.c