[PATCH] fix permissions to work properly now.

Forgot about umask in mknod...
This commit is contained in:
greg@kroah.com 2003-11-19 09:23:24 -08:00 committed by Greg KH
parent 3258c82887
commit 5bd1061cd6
1 changed files with 6 additions and 0 deletions

View File

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