chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
udevd: add --debug-trace option
[elogind.git]
/
udev_rules_parse.c
diff --git
a/udev_rules_parse.c
b/udev_rules_parse.c
index b9456b5fb0fe21cc4046f40b511205bc81f2c1c6..111fead9ad19a1c0579c137b84ae20df500df747 100644
(file)
--- a/
udev_rules_parse.c
+++ b/
udev_rules_parse.c
@@
-1,8
+1,6
@@
/*
/*
- * udev_rules_parse.c
- *
* Copyright (C) 2003,2004 Greg Kroah-Hartman <greg@kroah.com>
* Copyright (C) 2003,2004 Greg Kroah-Hartman <greg@kroah.com>
- * Copyright (C) 2003-200
5
Kay Sievers <kay.sievers@vrfy.org>
+ * Copyright (C) 2003-200
6
Kay Sievers <kay.sievers@vrfy.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@
-15,7
+13,7
@@
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
- *
675 Mass Ave, Cambridge, MA 02139
, USA.
+ *
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
, USA.
*
*/
*
*/
@@
-321,7
+319,7
@@
static int add_to_rules(struct udev_rules *rules, char *line, const char *filena
continue;
}
continue;
}
- if (strncasecmp(key, "ATTR
", sizeof("ATTR
")-1) == 0) {
+ if (strncasecmp(key, "ATTR
{", sizeof("ATTR{
")-1) == 0) {
attr = get_key_attribute(key + sizeof("ATTR")-1);
if (attr == NULL) {
err("error parsing ATTR attribute");
attr = get_key_attribute(key + sizeof("ATTR")-1);
if (attr == NULL) {
err("error parsing ATTR attribute");
@@
-368,8
+366,8
@@
static int add_to_rules(struct udev_rules *rules, char *line, const char *filena
continue;
}
continue;
}
- if (strncasecmp(key, "ATTRS
", sizeof("ATTRS
")-1) == 0 ||
- strncasecmp(key, "SYSFS
", sizeof("SYSFS
")-1) == 0) {
+ if (strncasecmp(key, "ATTRS
{", sizeof("ATTRS{
")-1) == 0 ||
+ strncasecmp(key, "SYSFS
{", sizeof("SYSFS{
")-1) == 0) {
attr = get_key_attribute(key + sizeof("ATTRS")-1);
if (attr == NULL) {
err("error parsing ATTRS attribute");
attr = get_key_attribute(key + sizeof("ATTRS")-1);
if (attr == NULL) {
err("error parsing ATTRS attribute");
@@
-381,7
+379,7
@@
static int add_to_rules(struct udev_rules *rules, char *line, const char *filena
continue;
}
continue;
}
- if (strncasecmp(key, "ENV
", sizeof("ENV
")-1) == 0) {
+ if (strncasecmp(key, "ENV
{", sizeof("ENV{
")-1) == 0) {
attr = get_key_attribute(key + sizeof("ENV")-1);
if (attr == NULL) {
err("error parsing ENV attribute");
attr = get_key_attribute(key + sizeof("ENV")-1);
if (attr == NULL) {
err("error parsing ENV attribute");