summaryrefslogtreecommitdiff
path: root/namedev.c
diff options
context:
space:
mode:
Diffstat (limited to 'namedev.c')
-rw-r--r--namedev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/namedev.c b/namedev.c
index 8f781a66e2..e075e20af5 100644
--- a/namedev.c
+++ b/namedev.c
@@ -840,6 +840,8 @@ found:
apply_format(udev, udev->name, sizeof(udev->name), class_dev, sysfs_device);
apply_format(udev, udev->symlink, sizeof(udev->symlink), class_dev, sysfs_device);
udev->partitions = dev->partitions;
+ strfieldcpy(udev->config_file, dev->config_file);
+ udev->config_line = dev->config_line;
done:
/* get permissions given in rule */
@@ -862,6 +864,9 @@ done:
dbg("name, '%s' is going to have owner='%s', group='%s', mode = %#o",
udev->name, udev->owner, udev->group, udev->mode);
+ /* store time of action */
+ udev->config_time = time(NULL);
+
return 0;
}