[systemd-commits] src/network
Tom Gundersen
tomegun at kemper.freedesktop.org
Wed Jul 30 12:54:03 PDT 2014
src/network/networkd-link.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 2b49732c3d511007ae2c413997e56c40f678d79a
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Jul 30 21:29:34 2014 +0200
networkd: don't assume udev_device_new_from_device_id sets errno
This reverts 6f4d55a8ae04e344a41fc2adef12ad99c2bb2927, as we cannot rely on errno here.
Reported by David Herrmann.
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index ec1a97a..5b1376a 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -2146,8 +2146,8 @@ int link_add(Manager *m, sd_rtnl_message *message, Link **ret) {
sprintf(ifindex_str, "n%d", link->ifindex);
device = udev_device_new_from_device_id(m->udev, ifindex_str);
if (!device) {
- log_warning_link(link, "could not find udev device: %m");
- return -errno;
+ log_warning_link(link, "could not find udev device");
+ return -ENOENT;
}
if (udev_device_get_is_initialized(device) <= 0) {
More information about the systemd-commits
mailing list