chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
fd40749
)
fix "do not access parent" warning for ATTR{}
author
Kay Sievers
<kay.sievers@vrfy.org>
Fri, 1 Jun 2007 14:37:43 +0000
(16:37 +0200)
committer
Kay Sievers
<kay.sievers@vrfy.org>
Fri, 1 Jun 2007 14:37:43 +0000
(16:37 +0200)
udev_rules_parse.c
patch
|
blob
|
history
diff --git
a/udev_rules_parse.c
b/udev_rules_parse.c
index bfbad367e9d41e4dfda8f806e5b737c08099bb3c..02bddbd0a89c6fc9b041d608bcd6a6c7cc032cf6 100644
(file)
--- a/
udev_rules_parse.c
+++ b/
udev_rules_parse.c
@@
-376,7
+376,7
@@
static int add_to_rules(struct udev_rules *rules, char *line, const char *filena
if (strncmp(attr, "device/", 7) == 0)
err("the 'device' link is deprecated and will be removed from a future kernel, "
"please fix it in %s:%u", filename, lineno);
if (strncmp(attr, "device/", 7) == 0)
err("the 'device' link is deprecated and will be removed from a future kernel, "
"please fix it in %s:%u", filename, lineno);
- else if (str
chr(attr, '/'
) != NULL)
+ else if (str
str(attr, "../"
) != NULL)
err("do not reference parent sysfs directories directly, that may break with a future kernel, "
"please fix it in %s:%u", filename, lineno);
if (add_rule_key_pair(rule, &rule->attrs, operation, attr, value) != 0)
err("do not reference parent sysfs directories directly, that may break with a future kernel, "
"please fix it in %s:%u", filename, lineno);
if (add_rule_key_pair(rule, &rule->attrs, operation, attr, value) != 0)