summaryrefslogtreecommitdiff
path: root/src/shutdown/s6-linux-init-shutdown.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shutdown/s6-linux-init-shutdown.c')
-rw-r--r--src/shutdown/s6-linux-init-shutdown.c3
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) ;