projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29bbefe
)
udevd: fix (recently) broken static node permission setting
author
Kay Sievers
<kay.sievers@vrfy.org>
Mon, 11 Jul 2011 20:56:37 +0000
(22:56 +0200)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Mon, 11 Jul 2011 20:56:37 +0000
(22:56 +0200)
Many thanks to Tom Gundersen for identifying the issue.
udev/udev-rules.c
patch
|
blob
|
history
diff --git
a/udev/udev-rules.c
b/udev/udev-rules.c
index
d16c1f9
..
7db0767
100644
(file)
--- a/
udev/udev-rules.c
+++ b/
udev/udev-rules.c
@@
-2721,7
+2721,7
@@
void udev_rules_apply_static_dev_perms(struct udev_rules *rules)
struct stat stats;
/* we assure, that the permissions tokens are sorted before the static token */
- if (uid == 0 && gid == 0)
+ if (
mode == 0 &&
uid == 0 && gid == 0)
goto next;
util_strscpyl(filename, sizeof(filename), udev_get_dev_path(rules->udev), "/",
&rules->buf[cur->key.value_off], NULL);