summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-10-23 23:57:50 +0200
committerLennart Poettering <lennart@poettering.net>2014-10-23 23:57:50 +0200
commit75514a707c74b69d64a5326ad075728212091cb4 (patch)
treec1aeafe21986bca7034b1ab6420a8794191126b1 /src/core
parentbe57e297acd0ae41044c99a7c41f95a8339a314c (diff)
socket: fix error comparison
Diffstat (limited to 'src/core')
-rw-r--r--src/core/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/socket.c b/src/core/socket.c
index dc16af5e39..7ba3a1b896 100644
--- a/src/core/socket.c
+++ b/src/core/socket.c
@@ -1150,7 +1150,7 @@ static int socket_open_fds(Socket *s) {
/* Get it from the network label */
r = mac_selinux_get_our_label(&label);
- if (r < 0 && r != EOPNOTSUPP)
+ if (r < 0 && r != -EOPNOTSUPP)
goto rollback;
} else {
@@ -1163,7 +1163,7 @@ static int socket_open_fds(Socket *s) {
if (UNIT_ISSET(s->service) &&
SERVICE(UNIT_DEREF(s->service))->exec_command[SERVICE_EXEC_START]) {
r = mac_selinux_get_create_label_from_exe(SERVICE(UNIT_DEREF(s->service))->exec_command[SERVICE_EXEC_START]->path, &label);
- if (r < 0 && r != -EPERM && r != EOPNOTSUPP)
+ if (r < 0 && r != -EPERM && r != -EOPNOTSUPP)
goto rollback;
}
}