diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2005-04-10 21:15:12 +0200 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:55:01 -0700 |
commit | 1bbff4f03584dc0ba830d8cb0fc91d10bd79ac94 (patch) | |
tree | ea46cac153400c39cfe80543d6024aa4b1018d2d | |
parent | 16eb35d16e4c897f8d0bf7accce5c8ad066e8774 (diff) |
[PATCH] apply default permissions only for devices that will need it
-rw-r--r-- | udev_utils.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/udev_utils.c b/udev_utils.c index 5cdfb1421d..74b55ed406 100644 --- a/udev_utils.c +++ b/udev_utils.c @@ -89,9 +89,11 @@ int udev_init_device(struct udevice *udev, const char* devpath, const char *subs } } - udev->mode = 0660; - strcpy(udev->owner, "root"); - strcpy(udev->group, "root"); + if (udev->type == DEV_BLOCK || udev->type == DEV_CLASS) { + udev->mode = 0660; + strcpy(udev->owner, "root"); + strcpy(udev->group, "root"); + } return 0; } |