From 75514a707c74b69d64a5326ad075728212091cb4 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 23 Oct 2014 23:57:50 +0200 Subject: socket: fix error comparison --- src/core/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') 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; } } -- cgit v1.2.3-54-g00ecf