mirror of
https://github.com/systemd/systemd.git
synced 2024-11-30 13:53:39 +08:00
[PATCH] fix permissions to work properly now.
Forgot about umask in mknod...
This commit is contained in:
parent
3258c82887
commit
5bd1061cd6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user