From 6cb86c3a330caedc323599cb11fbed4138958271 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Fri, 23 Nov 2012 18:56:16 -0500 Subject: 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 --- src/libudev/libudev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libudev/libudev.c') 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 = in /etc/udev/udev.conf[%i]; skip line\n", line_nr); + udev_err(udev, "missing = 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'; -- cgit v1.2.3-54-g00ecf