From 5bd1061cd67dea7ebc5a061365335b394f37b122 Mon Sep 17 00:00:00 2001 From: "greg@kroah.com" Date: Wed, 19 Nov 2003 09:23:24 -0800 Subject: [PATCH] [PATCH] fix permissions to work properly now. Forgot about umask in mknod... --- udev-add.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/udev-add.c b/udev-add.c index 6f0e3bf1..7ba873a8 100644 --- a/udev-add.c +++ b/udev-add.c @@ -135,6 +135,12 @@ static int create_node(struct udevice *dev) dbg("mknod(%s, %#o, %u, %u) failed with error '%s'", filename, dev->mode, dev->major, dev->minor, strerror(errno)); + dbg("chmod(%s, %#o)", filename, dev->mode); + retval = chmod(filename, dev->mode); + if (retval) + dbg("chmod(%s, %#o) failed with error '%s'", + filename, dev->mode, strerror(errno)); + if (*dev->owner) { char *endptr; unsigned long id = strtoul(dev->owner, &endptr, 10); -- 2.39.5