summaryrefslogtreecommitdiff
path: root/src/libudev/libudev.c
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2012-11-23 18:56:16 -0500
committerAnthony G. Basile <blueness@gentoo.org>2012-11-23 18:56:16 -0500
commit6cb86c3a330caedc323599cb11fbed4138958271 (patch)
tree6b0f1e44d69ed1d043b23f5f64e9f7e8b9830c07 /src/libudev/libudev.c
parente5cc2b881fd1db175b0d80bcccf21ae70857a532 (diff)
Propagation of configured installation paths to Makefile.am and .c code
This commit is a continuation of the previous one in which all the configured paths obtained in configure.ac are propagated to the Makefile.am and .c files via AM_CPPFLAGS of the form -DUDEV_CONF_FILE=\"$(udevconffile)\". This should address the issue in https://github.com/gentoo/eudev/issues/17 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/libudev/libudev.c')
-rw-r--r--src/libudev/libudev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libudev/libudev.c b/src/libudev/libudev.c
index 3341ee8ada..09c41e43a9 100644
--- a/src/libudev/libudev.c
+++ b/src/libudev/libudev.c
@@ -127,7 +127,7 @@ _public_ struct udev *udev_new(void)
udev->log_priority = LOG_ERR;
udev_list_init(udev, &udev->properties_list, true);
- f = fopen("/etc/udev/udev.conf", "re");
+ f = fopen( UDEV_CONF_FILE, "re");
if (f != NULL) {
char line[UTIL_LINE_SIZE];
int line_nr = 0;
@@ -151,7 +151,7 @@ _public_ struct udev *udev_new(void)
/* split key/value */
val = strchr(key, '=');
if (val == NULL) {
- udev_err(udev, "missing <key>=<value> in /etc/udev/udev.conf[%i]; skip line\n", line_nr);
+ udev_err(udev, "missing <key>=<value> in " UDEV_CONF_FILE "[%i]; skip line\n", line_nr);
continue;
}
val[0] = '\0';
@@ -183,7 +183,7 @@ _public_ struct udev *udev_new(void)
/* unquote */
if (val[0] == '"' || val[0] == '\'') {
if (val[len-1] != val[0]) {
- udev_err(udev, "inconsistent quoting in /etc/udev/udev.conf[%i]; skip line\n", line_nr);
+ udev_err(udev, "inconsistent quoting in " UDEV_CONF_FILE"[%i]; skip line\n", line_nr);
continue;
}
val[len-1] = '\0';