summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/init/s6-linux-init-maker.c2
-rw-r--r--src/init/s6-linux-init-telinit.c2
-rw-r--r--src/init/s6-linux-init.c2
-rw-r--r--src/misc/s6-linux-init-echo.c2
-rw-r--r--src/misc/s6-linux-init-logouthookd.c2
-rw-r--r--src/misc/s6-linux-init-umountall.c2
-rw-r--r--src/shutdown/hpr_confirm_hostname.c2
-rw-r--r--src/shutdown/hpr_wallv.c2
-rw-r--r--src/shutdown/s6-linux-init-hpr.c2
-rw-r--r--src/shutdown/s6-linux-init-shutdown.c3
-rw-r--r--src/shutdown/s6-linux-init-shutdownd.c2
11 files changed, 12 insertions, 11 deletions
diff --git a/src/init/s6-linux-init-maker.c b/src/init/s6-linux-init-maker.c
index 840695f..6f01d1e 100644
--- a/src/init/s6-linux-init-maker.c
+++ b/src/init/s6-linux-init-maker.c
@@ -11,7 +11,7 @@
#include <skalibs/bytestr.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/buffer.h>
-#include <skalibs/strerr2.h>
+#include <skalibs/strerr.h>
#include <skalibs/env.h>
#include <skalibs/stralloc.h>
#include <skalibs/djbunix.h>
diff --git a/src/init/s6-linux-init-telinit.c b/src/init/s6-linux-init-telinit.c
index ef99e5f..1ad3f44 100644
--- a/src/init/s6-linux-init-telinit.c
+++ b/src/init/s6-linux-init-telinit.c
@@ -5,7 +5,7 @@
#include <skalibs/types.h>
#include <skalibs/sgetopt.h>
-#include <skalibs/strerr2.h>
+#include <skalibs/strerr.h>
#include <skalibs/djbunix.h>
#include <skalibs/exec.h>
diff --git a/src/init/s6-linux-init.c b/src/init/s6-linux-init.c
index d9585d6..699b89f 100644
--- a/src/init/s6-linux-init.c
+++ b/src/init/s6-linux-init.c
@@ -17,7 +17,7 @@
#include <skalibs/types.h>
#include <skalibs/allreadwrite.h>
#include <skalibs/sgetopt.h>
-#include <skalibs/strerr2.h>
+#include <skalibs/strerr.h>
#include <skalibs/stralloc.h>
#include <skalibs/sig.h>
#include <skalibs/env.h>
diff --git a/src/misc/s6-linux-init-echo.c b/src/misc/s6-linux-init-echo.c
index a59eae7..54fabc6 100644
--- a/src/misc/s6-linux-init-echo.c
+++ b/src/misc/s6-linux-init-echo.c
@@ -2,7 +2,7 @@
#include <skalibs/sgetopt.h>
#include <skalibs/buffer.h>
-#include <skalibs/strerr2.h>
+#include <skalibs/strerr.h>
#define USAGE "s6-linux-init-echo [ -n ] [ -s sep ] args..."
diff --git a/src/misc/s6-linux-init-logouthookd.c b/src/misc/s6-linux-init-logouthookd.c
index cc542ba..1dfecee 100644
--- a/src/misc/s6-linux-init-logouthookd.c
+++ b/src/misc/s6-linux-init-logouthookd.c
@@ -16,7 +16,7 @@
#include <utmpx.h>
#include <skalibs/allreadwrite.h>
-#include <skalibs/strerr2.h>
+#include <skalibs/strerr.h>
#ifndef UT_NAMESIZE
#define UT_NAMESIZE 32
diff --git a/src/misc/s6-linux-init-umountall.c b/src/misc/s6-linux-init-umountall.c
index 42fae15..d4320ad 100644
--- a/src/misc/s6-linux-init-umountall.c
+++ b/src/misc/s6-linux-init-umountall.c
@@ -6,7 +6,7 @@
#include <mntent.h>
#include <sys/mount.h>
-#include <skalibs/strerr2.h>
+#include <skalibs/strerr.h>
#include <skalibs/stralloc.h>
#include <skalibs/skamisc.h>
diff --git a/src/shutdown/hpr_confirm_hostname.c b/src/shutdown/hpr_confirm_hostname.c
index 040c2f6..3cb1d29 100644
--- a/src/shutdown/hpr_confirm_hostname.c
+++ b/src/shutdown/hpr_confirm_hostname.c
@@ -9,7 +9,7 @@
#include <skalibs/allreadwrite.h>
#include <skalibs/bytestr.h>
-#include <skalibs/strerr2.h>
+#include <skalibs/strerr.h>
#include "hpr.h"
diff --git a/src/shutdown/hpr_wallv.c b/src/shutdown/hpr_wallv.c
index 50523c5..083fa7f 100644
--- a/src/shutdown/hpr_wallv.c
+++ b/src/shutdown/hpr_wallv.c
@@ -5,7 +5,7 @@
#include <utmpx.h>
#include <skalibs/allreadwrite.h>
-#include <skalibs/strerr2.h>
+#include <skalibs/strerr.h>
#include <skalibs/djbunix.h>
#include <skalibs/posixishard.h>
diff --git a/src/shutdown/s6-linux-init-hpr.c b/src/shutdown/s6-linux-init-hpr.c
index 7f3d457..d4fc6e8 100644
--- a/src/shutdown/s6-linux-init-hpr.c
+++ b/src/shutdown/s6-linux-init-hpr.c
@@ -8,7 +8,7 @@
#include <utmpx.h>
#include <sys/reboot.h>
-#include <skalibs/strerr2.h>
+#include <skalibs/strerr.h>
#include <skalibs/sgetopt.h>
#include <skalibs/sig.h>
#include <skalibs/tai.h>
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) ;
diff --git a/src/shutdown/s6-linux-init-shutdownd.c b/src/shutdown/s6-linux-init-shutdownd.c
index ed02721..9b019e5 100644
--- a/src/shutdown/s6-linux-init-shutdownd.c
+++ b/src/shutdown/s6-linux-init-shutdownd.c
@@ -16,7 +16,7 @@
#include <skalibs/allreadwrite.h>
#include <skalibs/bytestr.h>
#include <skalibs/buffer.h>
-#include <skalibs/strerr2.h>
+#include <skalibs/strerr.h>
#include <skalibs/sgetopt.h>
#include <skalibs/sig.h>
#include <skalibs/tai.h>