diff options
Diffstat (limited to 'src/shared/virt.c')
-rw-r--r-- | src/shared/virt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/virt.c b/src/shared/virt.c index 96b3f5671f..358b4403d2 100644 --- a/src/shared/virt.c +++ b/src/shared/virt.c @@ -63,11 +63,11 @@ int detect_container(const char **id) { } else { /* Otherwise, PID 1 dropped this information into a - * file in /run. This is better than accessing + * file in UDEV_ROOT_RUN. This is better than accessing * /proc/1/environ, since we don't need CAP_SYS_PTRACE * for that. */ - r = read_one_line_file("/run/systemd/container", &m); + r = read_one_line_file(UDEV_ROOT_RUN "/systemd/container", &m); if (r == -ENOENT) { r = 0; goto finish; |