diff options
author | Tom Gundersen <teg@jklm.no> | 2013-07-24 15:05:48 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-07-24 15:13:00 +0200 |
commit | 15a722007dc1d8a9a11934b2ab528cf4d25b6c62 (patch) | |
tree | 4e85985fe56057649a6a9f26142a291ed7b43956 /src/udev/udev-rules.c | |
parent | 490f0087627f441d5fece276ec86b64b5a9d6495 (diff) |
udev: static_node - don't touch permissions uneccessarily
Don't set default permissions if only TAGS were specified in a rule.
Diffstat (limited to 'src/udev/udev-rules.c')
-rw-r--r-- | src/udev/udev-rules.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index fe4965feb9..769b670b20 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -2586,6 +2586,10 @@ int udev_rules_apply_static_dev_perms(struct udev_rules *rules) } } + /* don't touch the permissions if only the tags were set */ + if (mode == 0 && uid == 0 && gid == 0) + goto next; + if (mode == 0) { if (gid > 0) mode = 0660; |