From 9803fc27fda4aee7dfb4da3d50f42004269f4834 Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Fri, 9 Jun 2000 18:57:16 +0000 Subject: Remove all occurances of strerror from Apache. ap_strerror works just fine with standard errno values, and it is more portable. This also allows me to remove the check for strerror from Apache's configure script. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85486 13f79535-47bb-0310-9956-ffa450edef68 --- support/suexec.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'support') diff --git a/support/suexec.c b/support/suexec.c index c31a0f3751..e5e3215afe 100644 --- a/support/suexec.c +++ b/support/suexec.c @@ -251,6 +251,7 @@ int main(int argc, char *argv[]) struct group *gr; /* group entry holder */ struct stat dir_info; /* directory info holder */ struct stat prg_info; /* program info holder */ + char buf[120]; /* * If there are a proper number of arguments, set @@ -351,7 +352,7 @@ int main(int argc, char *argv[]) { case -1: /* Error */ log_err("failed to setup bs2000 environment for user %s: %s\n", - target_uname, strerror(errno)); + target_uname, ap_strerror(errno, buf, sizeof(buf))); exit(150); case 0: /* Child */ break; @@ -558,6 +559,7 @@ int main(int argc, char *argv[]) * * Oh well, log the failure and error out. */ - log_err("(%d)%s: exec failed (%s)\n", errno, strerror(errno), cmd); + log_err("(%d)%s: exec failed (%s)\n", errno, + ap_strerror(errno, buf, sizeof(buf)), cmd); exit(255); } -- cgit v1.2.1