summaryrefslogtreecommitdiff
path: root/udev_utils.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-12-20 01:31:56 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:19:09 -0700
commit65ab1334122b6ed427ce39f48fb40757d44f8d71 (patch)
tree331c69c08e98ca2f88c154f531549c79b458dfa8 /udev_utils.c
parent2a270316e4c0afa1efe98d665e2e329b7bae6c0a (diff)
[PATCH] simplify permission application
We have only one source of permissions now, so apply the default permissions at udev init.
Diffstat (limited to 'udev_utils.c')
-rw-r--r--udev_utils.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/udev_utils.c b/udev_utils.c
index aa5c75f74d..0b730d565b 100644
--- a/udev_utils.c
+++ b/udev_utils.c
@@ -55,6 +55,10 @@ void udev_init_device(struct udevice *udev, const char* devpath, const char *sub
udev->type = 'n';
else if (strncmp(udev->devpath, "/class/", 7) == 0)
udev->type = 'c';
+
+ udev->mode = default_mode;
+ strfieldcpy(udev->owner, default_owner);
+ strfieldcpy(udev->group, default_group);
}
int kernel_release_satisfactory(int version, int patchlevel, int sublevel)