diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2022-11-29 12:52:26 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2022-11-29 12:52:26 +0000 |
commit | 84f6ffe6af05b9bdd33066254dca57ef4582afe2 (patch) | |
tree | fa5bc7bffa65e90a30f95b30c621bf9630c7b47d /src/shutdown/s6-linux-init-shutdown.c | |
parent | 38e3f100d4fe5e4f1095921da4dd4a303ab3ebd5 (diff) | |
download | s6-linux-init-84f6ffe6af05b9bdd33066254dca57ef4582afe2.tar.xz |
Prepare for 1.0.8.1
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/shutdown/s6-linux-init-shutdown.c')
-rw-r--r-- | src/shutdown/s6-linux-init-shutdown.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shutdown/s6-linux-init-shutdown.c b/src/shutdown/s6-linux-init-shutdown.c index 011abef..bc30f0c 100644 --- a/src/shutdown/s6-linux-init-shutdown.c +++ b/src/shutdown/s6-linux-init-shutdown.c @@ -14,7 +14,7 @@ #include <skalibs/uint64.h> #include <skalibs/types.h> #include <skalibs/allreadwrite.h> -#include <skalibs/strerr2.h> +#include <skalibs/strerr.h> #include <skalibs/sgetopt.h> #include <skalibs/sig.h> #include <skalibs/tai.h> @@ -181,6 +181,7 @@ static inline void access_control (void) fmt[uint32_fmt(fmt, AC_BUFSIZE - 1)] = 0 ; strerr_dief4x(1, AC_FILE, " is too big: it needs to be ", fmt, " bytes or less") ; } + errno = EPIPE ; if (allread(fd, buf, st.st_size) < st.st_size) strerr_diefu2sys(111, "read ", AC_FILE) ; fd_close(fd) ; |