diff options
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; |