From b9a8c4821a98df33ba2cc5b18b15d7175709c376 Mon Sep 17 00:00:00 2001 From: "kay.sievers@vrfy.org" Date: Tue, 21 Dec 2004 06:10:57 +0100 Subject: [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. --- udev_utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'udev_utils.c') 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) -- cgit v1.2.3-54-g00ecf