mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
[PATCH] uninitialized variable for mknod and friend
mknod gets an uninitialized variable, which leads to interesting file modes. the bug is in namedev, devices with no match must not use the uninitialized stuff were dev points to.
This commit is contained in:
parent
fdcfcec707
commit
4474484153
@ -843,12 +843,12 @@ found:
|
||||
strfieldcpy(udev->config_file, dev->config_file);
|
||||
udev->config_line = dev->config_line;
|
||||
|
||||
done:
|
||||
/* get permissions given in rule */
|
||||
set_empty_perms(udev, dev->mode,
|
||||
dev->owner,
|
||||
dev->group);
|
||||
|
||||
done:
|
||||
/* get permissions given in config file or set defaults */
|
||||
perm = find_perm(udev->name);
|
||||
if (perm != NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user