From: kay.sievers@vrfy.org Date: Sat, 3 Apr 2004 00:59:01 +0000 (-0800) Subject: [PATCH] put config info in db for netdev X-Git-Tag: 024~6 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=1e799babb6f37b2d52f1a0a3bfaf85c0405cf10a [PATCH] put config info in db for netdev Small change, to put the config informations for handled network interfaces into the database. --- diff --git a/namedev.c b/namedev.c index a3ae1d36b..51a4639ab 100644 --- a/namedev.c +++ b/namedev.c @@ -850,13 +850,13 @@ int namedev_name_device(struct sysfs_class_device *class_dev, struct udevice *ud found: apply_format(udev, udev->name, sizeof(udev->name), class_dev, sysfs_device); + strfieldcpy(udev->config_file, dev->config_file); + udev->config_line = dev->config_line; if (udev->type == 'n') goto done; udev->partitions = dev->partitions; - strfieldcpy(udev->config_file, dev->config_file); - udev->config_line = dev->config_line; /* get permissions given in rule */ set_empty_perms(udev, dev->mode,