summaryrefslogtreecommitdiff
path: root/udev_utils.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-12-21 06:10:57 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:19:09 -0700
commitb9a8c4821a98df33ba2cc5b18b15d7175709c376 (patch)
tree5d8649ba364e613b124456bbecd8b9fa7614a571 /udev_utils.c
parenteb8700908c961d4a0197273f728bc3a3d6cd6c4a (diff)
[PATCH] remove default_* permissions from udev.conf file
With the "permissions only rules" we can just place: MODE="0660", OWNER="root", GROUP="root" at the beginning of the rules file and get exactly the same behavior. If no values are given the compiled-in defaults are used.
Diffstat (limited to 'udev_utils.c')
-rw-r--r--udev_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/udev_utils.c b/udev_utils.c
index fe18892de1..3c5344a8f9 100644
--- a/udev_utils.c
+++ b/udev_utils.c
@@ -57,9 +57,9 @@ void udev_init_device(struct udevice *udev, const char* devpath, const char *sub
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);
+ udev->mode = 0660;
+ strcpy(udev->owner, "root");
+ strcpy(udev->group, "root");
}
int kernel_release_satisfactory(int version, int patchlevel, int sublevel)