Commit ffe62588 authored by Ryan Bloom's avatar Ryan Bloom
Browse files

Get suexec compiling again.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87530 13f79535-47bb-0310-9956-ffa450edef68
parent 5233864d
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -172,31 +172,31 @@ AC_ARG_WITH(program-name,
# SuExec parameters
AC_ARG_WITH(suexec-caller,
[  --with-suexec-caller=User allowed to call SuExec],[
  AC_DEFINE_UNQUOTED(AP_HTTPD_USER, $withval, [User allowed to call SuExec] ) ] )
  AC_DEFINE_UNQUOTED(AP_HTTPD_USER, "$withval", [User allowed to call SuExec] ) ] )

AC_ARG_WITH(suexec-userdir,
[  --with-suexec-userdir=User subdirectory],[
  AC_DEFINE_UNQUOTED(AP_USERDIR_SUFFIX, $withval, [User subdirectory] ) ] )
  AC_DEFINE_UNQUOTED(AP_USERDIR_SUFFIX, "$withval", [User subdirectory] ) ] )

AC_ARG_WITH(suexec-docroot,
[  --with-suexec-docroot=SuExec root directory],[
  AC_DEFINE_UNQUOTED(AP_DOC_ROOT, $withval, [SuExec root directory] ) ] )
  AC_DEFINE_UNQUOTED(AP_DOC_ROOT, "$withval", [SuExec root directory] ) ] )

AC_ARG_WITH(suexec-uidmin,
[  --with-suexec-uidmin=Minimal allowed UID],[
  AC_DEFINE_UNQUOTED(AP_UID_MIN, $withval, [Minimal allowed UID] ) ] )
  AC_DEFINE_UNQUOTED(AP_UID_MIN, "$withval", [Minimal allowed UID] ) ] )

AC_ARG_WITH(suexec-gidmin,
[  --with-suexec-gidmin=Minimal allowed GID],[
  AC_DEFINE_UNQUOTED(AP_GID_MIN, $withval, [Minimal allowed GID] ) ] )
  AC_DEFINE_UNQUOTED(AP_GID_MIN, "$withval", [Minimal allowed GID] ) ] )

AC_ARG_WITH(suexec-logfile,
[  --with-suexec-logfile=Set the logfile],[
  AC_DEFINE_UNQUOTED(AP_LOG_EXEC, $withval, [SuExec log file] ) ] )
  AC_DEFINE_UNQUOTED(AP_LOG_EXEC, "$withval", [SuExec log file] ) ] )

AC_ARG_WITH(suexec-safepath,
[  --with-suexec-safepath=Set the safepath],[
  AC_DEFINE_UNQUOTED(AP_SAFE_PATH, $withval, [safe shell path for SuExec] ) ] )
  AC_DEFINE_UNQUOTED(AP_SAFE_PATH, "$withval", [safe shell path for SuExec] ) ] )

dnl ### util_xml is always included, so we always need Expat (for now)
apache_need_expat=yes
+5 −2
Original line number Diff line number Diff line
@@ -73,7 +73,10 @@
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <string.h>
#include <time.h>

#include <stdio.h>
#include <stdarg.h>

#include "suexec.h"
@@ -369,7 +372,7 @@ int main(int argc, char *argv[])
	{
	case -1:	/* Error */
	    log_err("failed to setup bs2000 environment for user %s: %s\n",
		    target_uname, apr_strerror(errno, buf, sizeof(buf)));
		    target_uname, strerror(errno));
	    exit(150);
	case 0:	/* Child */
	    break;
@@ -577,6 +580,6 @@ int main(int argc, char *argv[])
     * Oh well, log the failure and error out.
     */
    log_err("(%d)%s: exec failed (%s)\n", errno, 
            apr_strerror(errno, buf, sizeof(buf)), cmd);
            strerror(errno), cmd);
    exit(255);
}