networkd: link - fix carrier check on new link
We were comparing against our own internal enum rather than the kernel exposed one. Found by Thomas Ritter.
This commit is contained in:
@@ -1764,7 +1764,7 @@ static int link_configure(Link *link) {
|
||||
*/
|
||||
}
|
||||
|
||||
if (link_has_carrier(link->flags, link->operstate)) {
|
||||
if (link_has_carrier(link->flags, link->kernel_operstate)) {
|
||||
r = link_acquire_conf(link);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user