util_script.c revision b178963bae64a9a5fb7b48dcdec4420158aa66a9
b43f840409794ed298e8634f6284741f193b6c4ftakashi/* Licensed to the Apache Software Foundation (ASF) under one or more
b43f840409794ed298e8634f6284741f193b6c4ftakashi * contributor license agreements. See the NOTICE file distributed with
b43f840409794ed298e8634f6284741f193b6c4ftakashi * this work for additional information regarding copyright ownership.
b43f840409794ed298e8634f6284741f193b6c4ftakashi * The ASF licenses this file to You under the Apache License, Version 2.0
b43f840409794ed298e8634f6284741f193b6c4ftakashi * (the "License"); you may not use this file except in compliance with
#include "apr.h"
#include "apr_lib.h"
#include "apr_strings.h"
#define APR_WANT_STRFUNC
#include "apr_want.h"
#include <stdlib.h>
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_main.h"
#include "http_log.h"
#include "http_core.h"
#include "http_protocol.h"
#include "util_script.h"
#include "util_ebcdic.h"
if (!apr_isalnum(c)) {
*cp = 0;
return res;
char *tz;
char *whack;
++whack;
return env;
apr_table_t *e;
const char *rem_logname;
char *env_path;
#if defined(WIN32)
char *env_temp;
const char *host;
e = r->subprocess_env;
#ifndef SECURITY_HOLE_PASS_AUTHORIZATION
#ifdef WIN32
if (host) {
if (r->user) {
else if (r->prev) {
while (back) {
if (r->ap_auth_type) {
if (rem_logname) {
if (r->prev) {
if (e != r->subprocess_env) {
lu = 0;
lu++;
return lu;
NULL);
NULL);
#ifdef WIN32
int (*getsfunc) (char *, int, void *),
void *getsfunc_data)
char x[MAX_STRING_LEN];
if (buffer) {
if (rv == 0) {
return HTTP_INTERNAL_SERVER_ERROR;
return HTTP_GATEWAY_TIME_OUT;
p = strlen(w);
return cond_status;
++maybeEBCDIC;
++maybeASCII;
r->filename);
if (!buffer) {
return HTTP_INTERNAL_SERVER_ERROR;
while (*l && apr_isspace(*l)) {
char *tmp;
return OK;
char *buffer)
int done = 0;
const char *bucket_data;
const char *src;
const char *src_end;
src++;
e = next;
*dst = 0;
char *buffer)
struct vastrs {
int arg;
const char *curpos;
if (t > len)
t = len;
char *buffer,
const char **termch,
int *termarg, ...)
int res;
if (termch)
if (termarg)
return res;
char *key;
char *value;
char *strtok_state;
while (key) {
if (value) {
*table = t;
if (r->body_table) {
return APR_SUCCESS;
if (rv) {
if (rv) {
if (len == 0) {
if (!rv) {
char *buffer;
if (!rv) {
return rv;