[PATCH] apply default permissions only for devices that will need it

This commit is contained in:
kay.sievers@vrfy.org 2005-04-10 21:15:12 +02:00 committed by Greg KH
parent 16eb35d16e
commit 1bbff4f035

View file

@ -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;
}