summaryrefslogtreecommitdiff
path: root/testing/udev/static-node-permission.patch
diff options
context:
space:
mode:
Diffstat (limited to 'testing/udev/static-node-permission.patch')
-rw-r--r--testing/udev/static-node-permission.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/udev/static-node-permission.patch b/testing/udev/static-node-permission.patch
new file mode 100644
index 000000000..3d9a8722c
--- /dev/null
+++ b/testing/udev/static-node-permission.patch
@@ -0,0 +1,26 @@
+From 36acdbcc776822624103eff7c80a9468317918ac Mon Sep 17 00:00:00 2001
+From: Kay Sievers <kay.sievers@vrfy.org>
+Date: Mon, 11 Jul 2011 22:56:37 +0200
+Subject: [PATCH] udevd: fix (recently) broken static node permission setting
+
+Many thanks to Tom Gundersen for identifying the issue.
+---
+ udev/udev-rules.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/udev/udev-rules.c b/udev/udev-rules.c
+index d16c1f9..7db0767 100644
+--- 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);
+--
+1.7.6
+