summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2000-06-09 18:57:16 +0000
committerRyan Bloom <rbb@apache.org>2000-06-09 18:57:16 +0000
commit9803fc27fda4aee7dfb4da3d50f42004269f4834 (patch)
treea867a5cdaf128ab11107eafe89a02824c3c9a458 /support
parentd01fb3c907e85b2c912ee17cc1c230387bf65eef (diff)
downloadhttpd-9803fc27fda4aee7dfb4da3d50f42004269f4834.tar.gz
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
Diffstat (limited to 'support')
-rw-r--r--support/suexec.c6
1 files changed, 4 insertions, 2 deletions
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);
}