teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0372-udev-net_id-dev_port-is-base-10.patch

84b277
From 6aba16d2932457f516a3153d85b147f3d962f4a2 Mon Sep 17 00:00:00 2001
84b277
From: Lukas Nykryn <lnykryn@redhat.com>
84b277
Date: Tue, 4 Nov 2014 17:59:28 +0100
84b277
Subject: [PATCH] udev: net_id dev_port is base 10
84b277
84b277
Related: #1155996
84b277
---
84b277
 src/udev/udev-builtin-net_id.c | 2 +-
84b277
 1 file changed, 1 insertion(+), 1 deletion(-)
84b277
84b277
diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c
84b277
index b5b5909..4e6ca96 100644
84b277
--- a/src/udev/udev-builtin-net_id.c
84b277
+++ b/src/udev/udev-builtin-net_id.c
84b277
@@ -190,7 +190,7 @@ static int dev_pci_slot(struct udev_device *dev, struct netnames *names) {
84b277
                 if (dev_id == 0) {
84b277
                         attr = udev_device_get_sysattr_value(dev, "dev_port");
84b277
                         if (attr)
84b277
-                                dev_id = strtol(attr, NULL, 16);
84b277
+                                dev_id = strtol(attr, NULL, 10);
84b277
                 }
84b277
         }
84b277