diff options
author | Kay Sievers <kay@vrfy.org> | 2012-12-31 04:48:44 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-12-31 04:48:44 +0100 |
commit | 1edefa4f1d7bae6cc19aa4a97238400c5a04f7a4 (patch) | |
tree | 20acb3dde5ec7a3515bee87ebe6d39ba7751835b /src/udev/udev-event.c | |
parent | 6fe8ab6d57f24bcdbb18c8e40a3927090fbaeb0e (diff) |
udev: in addition to DEVMODE, honor DEVUID, DEVGID from the uevent
Diffstat (limited to 'src/udev/udev-event.c')
-rw-r--r-- | src/udev/udev-event.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/udev/udev-event.c b/src/udev/udev-event.c index b75ed33fbf..5eedf4f0df 100644 --- a/src/udev/udev-event.c +++ b/src/udev/udev-event.c @@ -842,6 +842,12 @@ int udev_event_execute_rules(struct udev_event *event, struct udev_rules *rules, if (event->dev_db != NULL) udev_node_update_old_links(dev, event->dev_db); + if (!event->owner_set) + event->uid = udev_device_get_devnode_uid(dev); + + if (!event->group_set) + event->gid = udev_device_get_devnode_gid(dev); + if (!event->mode_set) { if (udev_device_get_devnode_mode(dev) > 0) { /* kernel supplied value */ |