summaryrefslogtreecommitdiff
path: root/src/tipideed
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-10-22 16:41:47 +0000
committerLaurent Bercot <ska@appnovation.com>2023-10-22 16:41:47 +0000
commit941ff50d2183999d8f1cbd249b6a892f70091ded (patch)
treea7ca22ab7df600e746c7fa69aff4926b7fc0294d /src/tipideed
parentd14c3b75a8cabe4569b899785b2059e96e581227 (diff)
downloadtipidee-941ff50d2183999d8f1cbd249b6a892f70091ded.tar.xz
Some fixes (thanks jjk)
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tipideed')
-rw-r--r--src/tipideed/responses.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tipideed/responses.c b/src/tipideed/responses.c
index 3f42d85..81b8315 100644
--- a/src/tipideed/responses.c
+++ b/src/tipideed/responses.c
@@ -42,9 +42,9 @@ void response_error (tipidee_rql const *rql, char const *docroot, unsigned int s
char const *file ;
size_t salen = g.sa.len ;
if (sarealpath(&g.sa, docroot) == -1 || !stralloc_0(&g.sa))
- die500sys(rql, 111, docroot, "realpath ", docroot) ;
+ strerr_diefu2sys(111, "realpath ", docroot) ;
if (strncmp(g.sa.s + salen, g.sa.s, g.cwdlen) || g.sa.s[salen + g.cwdlen] != '/')
- die500x(rql, 102, docroot, "docroot ", docroot, " points outside of the server's root") ;
+ strerr_dief4x(102, "layout error: ", "docroot ", docroot, " points outside of the server's root") ;
file = tipidee_conf_get_errorfile(&g.conf, g.sa.s + salen + g.cwdlen + 1, status) ;
g.sa.len = salen ;
if (!tipidee_util_defaulttext(status, &dt))
@@ -58,9 +58,9 @@ void response_error (tipidee_rql const *rql, char const *docroot, unsigned int s
{
int fd ;
if (sarealpath(&g.sa, file) == -1 || !stralloc_0(&g.sa))
- die500sys(rql, 111, docroot, "realpath ", file) ;
+ strerr_diefu2sys(111, "realpath ", file) ;
if (strncmp(g.sa.s + salen, g.sa.s, g.cwdlen) || g.sa.s[salen + g.cwdlen] != '/')
- die500x(rql, 102, docroot, "custom response file ", file, " points outside of the server's root") ;
+ strerr_dief4x(102, "layout error: ", "custom response file ", file, " points outside of the server's root") ;
fd = open_read(g.sa.s + salen + g.cwdlen + 1) ;
g.sa.len = salen ;
if (fd == -1) strerr_warnwu3sys("open ", "custom response file ", file) ;