summaryrefslogtreecommitdiff
path: root/src/core/unit-printf.c
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-03-13 14:08:00 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2015-03-13 14:10:39 +0100
commit15411c0cb1192799b37ec8f25d6f30e8d7292fc6 (patch)
tree003adfa8f694890078b5fb6d901e420c9a966ece /src/core/unit-printf.c
parent32a568fb90bf0a22a3007fa670305403a5d0bb72 (diff)
tree-wide: there is no ENOTSUP on linux
Replace ENOTSUP by EOPNOTSUPP as this is what linux actually uses.
Diffstat (limited to 'src/core/unit-printf.c')
-rw-r--r--src/core/unit-printf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/core/unit-printf.c b/src/core/unit-printf.c
index 7736899a35..90cb5040c1 100644
--- a/src/core/unit-printf.c
+++ b/src/core/unit-printf.c
@@ -81,7 +81,7 @@ static int specifier_instance_unescaped(char specifier, void *data, void *userda
assert(u);
if (!u->instance)
- return -ENOTSUP;
+ return -EOPNOTSUPP;
n = unit_name_unescape(u->instance);
if (!n)
@@ -164,7 +164,7 @@ static int specifier_runtime(char specifier, void *data, void *userdata, char **
else {
e = getenv("XDG_RUNTIME_DIR");
if (!e)
- return -ENOTSUP;
+ return -EOPNOTSUPP;
}
n = strdup(e);
@@ -185,7 +185,7 @@ static int specifier_user_name(char specifier, void *data, void *userdata, char
c = unit_get_exec_context(u);
if (!c)
- return -ENOTSUP;
+ return -EOPNOTSUPP;
if (u->manager->running_as == SYSTEMD_SYSTEM) {
@@ -248,7 +248,7 @@ static int specifier_user_home(char specifier, void *data, void *userdata, char
c = unit_get_exec_context(u);
if (!c)
- return -ENOTSUP;
+ return -EOPNOTSUPP;
if (u->manager->running_as == SYSTEMD_SYSTEM) {
@@ -258,7 +258,7 @@ static int specifier_user_home(char specifier, void *data, void *userdata, char
if (!c->user || streq(c->user, "root") || streq(c->user, "0"))
n = strdup("/root");
else
- return -ENOTSUP;
+ return -EOPNOTSUPP;
} else {
@@ -296,7 +296,7 @@ static int specifier_user_shell(char specifier, void *data, void *userdata, char
c = unit_get_exec_context(u);
if (!c)
- return -ENOTSUP;
+ return -EOPNOTSUPP;
if (u->manager->running_as == SYSTEMD_SYSTEM) {
@@ -306,7 +306,7 @@ static int specifier_user_shell(char specifier, void *data, void *userdata, char
if (!c->user || streq(c->user, "root") || streq(c->user, "0"))
n = strdup("/bin/sh");
else
- return -ENOTSUP;
+ return -EOPNOTSUPP;
} else {