summaryrefslogtreecommitdiff
path: root/namedev.c
diff options
context:
space:
mode:
authorsschweizer@gmail.com <sschweizer@gmail.com>2004-12-02 22:23:21 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 22:43:36 -0700
commit8a0dc204e902a47a5b251c6d4a29eddb8f4a634a (patch)
tree4739ec025f514009fa3cac23c16f273e0958bc39 /namedev.c
parentad89f2be3b045f37b7e17de10f5ad46dbb09664f (diff)
[PATCH] Allow GROUP to have modifiers in it
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 69669709df..dca405ceba 100644
--- a/namedev.c
+++ b/namedev.c
@@ -809,6 +809,11 @@ found:
udev->partitions = dev->partitions;
udev->ignore_remove = dev->ignore_remove;
+ if (dev->group[0] != '\0') {
+ strfieldcpy(udev->group, dev->group);
+ apply_format(udev, udev->group, sizeof(udev->group), class_dev, sysfs_device);
+ }
+
/* get permissions given in rule */
set_empty_perms(udev, dev->mode,
dev->owner,