diff options
author | David Cortarello <dcortarello@gmail.com> | 2015-03-25 01:48:36 -0300 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-03-27 11:34:13 -0400 |
commit | 6a398265f3bd30a252cba2b1ada04ff1c617cf96 (patch) | |
tree | 2a0761e4c4b46b8bb433e24032a4353cab3bed58 /src/collect | |
parent | 3cda11ed7c226adc9f4818cecfb21974239d632b (diff) |
Remove hardcoded path /run and configure using --with-rootrundir=
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/collect')
-rw-r--r-- | src/collect/Makefile.am | 1 | ||||
-rw-r--r-- | src/collect/collect.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/collect/Makefile.am b/src/collect/Makefile.am index 361a5a2094..a531a2d88a 100644 --- a/src/collect/Makefile.am +++ b/src/collect/Makefile.am @@ -1,6 +1,7 @@ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} AM_CPPFLAGS = \ + -DUDEV_ROOT_RUN=\"$(rootrundir)\" \ -I $(top_srcdir)/src/shared \ -I $(top_srcdir)/src/libudev diff --git a/src/collect/collect.c b/src/collect/collect.c index f309f3b98e..2cf1f0054d 100644 --- a/src/collect/collect.c +++ b/src/collect/collect.c @@ -422,7 +422,7 @@ int main(int argc, char **argv) if (debug) fprintf(stderr, "Using checkpoint '%s'\n", checkpoint); - strscpyl(tmpdir, sizeof(tmpdir), "/run/udev/collect", NULL); + strscpyl(tmpdir, sizeof(tmpdir), UDEV_ROOT_RUN "/udev/collect", NULL); fd = prepare(tmpdir, checkpoint); if (fd < 0) { ret = 3; |