diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-10-23 23:57:50 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-10-23 23:57:50 +0200 |
commit | 75514a707c74b69d64a5326ad075728212091cb4 (patch) | |
tree | c1aeafe21986bca7034b1ab6420a8794191126b1 /src/core | |
parent | be57e297acd0ae41044c99a7c41f95a8339a314c (diff) |
socket: fix error comparison
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/socket.c | 4 |
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; } } |