From b2c23da8cea1987a1a329f5a964d3299b7ca7890 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 11 May 2015 22:51:49 +0200 Subject: core: rename SystemdRunningAs to ManagerRunningAs It's primarily just a property of the Manager object after all, and we try to refer to PID 1 as "manager" instead of "systemd", hence let's to stick to this here too. --- src/core/unit-printf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core/unit-printf.c') diff --git a/src/core/unit-printf.c b/src/core/unit-printf.c index 8050e2fd66..0889769d03 100644 --- a/src/core/unit-printf.c +++ b/src/core/unit-printf.c @@ -140,7 +140,7 @@ static int specifier_runtime(char specifier, void *data, void *userdata, char ** assert(u); - if (u->manager->running_as == SYSTEMD_SYSTEM) + if (u->manager->running_as == MANAGER_SYSTEM) e = "/run"; else { e = getenv("XDG_RUNTIME_DIR"); @@ -168,7 +168,7 @@ static int specifier_user_name(char specifier, void *data, void *userdata, char if (!c) return -EINVAL; - if (u->manager->running_as == SYSTEMD_SYSTEM) { + if (u->manager->running_as == MANAGER_SYSTEM) { /* We cannot use NSS from PID 1, hence try to make the * best of it in that case, and fail if we can't help @@ -231,7 +231,7 @@ static int specifier_user_home(char specifier, void *data, void *userdata, char if (!c) return -EOPNOTSUPP; - if (u->manager->running_as == SYSTEMD_SYSTEM) { + if (u->manager->running_as == MANAGER_SYSTEM) { /* We cannot use NSS from PID 1, hence try to make the * best of it if we can, but fail if we can't */ @@ -279,7 +279,7 @@ static int specifier_user_shell(char specifier, void *data, void *userdata, char if (!c) return -EOPNOTSUPP; - if (u->manager->running_as == SYSTEMD_SYSTEM) { + if (u->manager->running_as == MANAGER_SYSTEM) { /* We cannot use NSS from PID 1, hence try to make the * best of it if we can, but fail if we can't */ -- cgit v1.2.3-54-g00ecf