mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-26 10:03:40 +03:00
[PATCH] fix bug in permission handling.
This commit is contained in:
parent
5a98bc58e4
commit
ba053b91e1
@ -112,7 +112,7 @@ int add_perm_dev(struct perm_device *new_dev)
|
|||||||
|
|
||||||
/* update the values if we already have the device */
|
/* update the values if we already have the device */
|
||||||
list_for_each_entry(dev, &perm_device_list, node) {
|
list_for_each_entry(dev, &perm_device_list, node) {
|
||||||
if (strcmp_pattern(new_dev->name, dev->name))
|
if (strcmp(new_dev->name, dev->name))
|
||||||
continue;
|
continue;
|
||||||
copy_var(dev, new_dev, mode);
|
copy_var(dev, new_dev, mode);
|
||||||
copy_string(dev, new_dev, owner);
|
copy_string(dev, new_dev, owner);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user