chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] udev - program to query all device attributes to build a rule
[elogind.git]
/
namedev_parse.c
diff --git
a/namedev_parse.c
b/namedev_parse.c
index 0712c3b44769350d268845b2bd858d5588407fa8..546d767aed6a665f55cd9156adac6a6f3cc035d8 100644
(file)
--- a/
namedev_parse.c
+++ b/
namedev_parse.c
@@
-36,6
+36,7
@@
#include <errno.h>
#include "udev.h"
#include <errno.h>
#include "udev.h"
+#include "logging.h"
#include "namedev.h"
static int add_config_dev(struct config_device *new_dev)
#include "namedev.h"
static int add_config_dev(struct config_device *new_dev)
@@
-249,6
+250,7
@@
int namedev_init_rules(void)
goto error;
}
goto error;
}
+ dev.config_line = lineno;
retval = add_config_dev(&dev);
if (retval) {
dbg("add_config_dev returned with error %d", retval);
retval = add_config_dev(&dev);
if (retval) {
dbg("add_config_dev returned with error %d", retval);
@@
-322,7
+324,7
@@
int namedev_init_permissions(void)
dbg("cannot parse line '%s'", line);
continue;
}
dbg("cannot parse line '%s'", line);
continue;
}
- strncpy(dev.group, temp2, sizeof(dev.
owner
));
+ strncpy(dev.group, temp2, sizeof(dev.
group
));
if (!temp) {
dbg("cannot parse line: %s", line);
if (!temp) {
dbg("cannot parse line: %s", line);