X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Factivate%2Factivate.c;fp=src%2Factivate%2Factivate.c;h=70f86bb1e99a653eeb3c99c0aef07aa49a2c7396;hp=f4f41ed36cc31870e3a74fb8fbe27d4e7b2db01e;hb=da927ba997d68401563b927f92e6e40e021a8e5c;hpb=0a1beeb64207eaa88ab9236787b1cbc2f704ae14 diff --git a/src/activate/activate.c b/src/activate/activate.c index f4f41ed36..70f86bb1e 100644 --- a/src/activate/activate.c +++ b/src/activate/activate.c @@ -103,7 +103,7 @@ static int open_sockets(int *epoll_fd, bool accept) { fd = make_socket_fd(LOG_DEBUG, *address, SOCK_STREAM | (arg_accept*SOCK_CLOEXEC)); if (fd < 0) { log_open(); - log_error_errno(-fd, "Failed to open '%s': %m", *address); + log_error_errno(fd, "Failed to open '%s': %m", *address); return fd; }