--- parser3/src/main/pa_exec.C 2004/02/27 10:52:16 1.58 +++ parser3/src/main/pa_exec.C 2004/07/06 12:55:16 1.60 @@ -7,7 +7,7 @@ @todo setrlimit */ -static const char * const IDENT_EXEC_C="$Date: 2004/02/27 10:52:16 $"; +static const char * const IDENT_EXEC_C="$Date: 2004/07/06 12:55:16 $"; #include "pa_config_includes.h" @@ -312,7 +312,7 @@ static void append_env_pair(HashStringSt String::Body body; body << key << "=" << value; - *(info->env_ref++)=body.cstrm(); + *(info->env_ref++)=body.cstrm(String::L_UNSPECIFIED); #endif } @@ -445,10 +445,12 @@ from http://www.apache.org/websrc/cvsweb close(pipe_err); result.status=get_exit_status(pid); // negative may mean "-errno[execl()]" - } else + } else { + const char* str=strerror(errno); throw Exception(0, &file_spec, - "%s error: %s (%d)", pid<0?"fork":"pipe", strerror(errno), errno); + "%s error: %s (%d)", pid<0?"fork":"pipe", str?str:"", errno); + } #endif return result;