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/libudev/libudev-device-private.c | |
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/libudev/libudev-device-private.c')
-rw-r--r-- | src/libudev/libudev-device-private.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libudev/libudev-device-private.c b/src/libudev/libudev-device-private.c index b7c0004563..05e772a50f 100644 --- a/src/libudev/libudev-device-private.c +++ b/src/libudev/libudev-device-private.c @@ -37,7 +37,7 @@ static void udev_device_tag(struct udev_device *dev, const char *tag, bool add) id = udev_device_get_id_filename(dev); if (id == NULL) return; - strscpyl(filename, sizeof(filename), "/run/udev/tags/", tag, "/", id, NULL); + strscpyl(filename, sizeof(filename), UDEV_ROOT_RUN "/udev/tags/", tag, "/", id, NULL); if (add) { int fd; @@ -114,7 +114,7 @@ int udev_device_update_db(struct udev_device *udev_device) return -1; has_info = device_has_info(udev_device); - strscpyl(filename, sizeof(filename), "/run/udev/data/", id, NULL); + strscpyl(filename, sizeof(filename), UDEV_ROOT_RUN "/udev/data/", id, NULL); /* do not store anything for otherwise empty devices */ if (!has_info && @@ -182,7 +182,7 @@ int udev_device_delete_db(struct udev_device *udev_device) id = udev_device_get_id_filename(udev_device); if (id == NULL) return -1; - strscpyl(filename, sizeof(filename), "/run/udev/data/", id, NULL); + strscpyl(filename, sizeof(filename), UDEV_ROOT_RUN "/udev/data/", id, NULL); unlink(filename); return 0; |