version 1.10, 2008/02/05 19:59:40
|
version 1.11, 2008/02/06 20:50:45
|
|
|
| |
if (pid == 0) | if (pid == 0) |
{ | { |
char arg1[32]; |
char toPipeArg[32]; |
char arg2[32]; |
char fromPipeArg[32]; |
|
/* The user context is set here; no need to do it in cimprovagt. */ |
|
const char* setUserContextFlag = "0"; |
| |
/* Close unused pipe descriptors: */ | /* Close unused pipe descriptors: */ |
| |
|
|
| |
/* Exec the CIMPROVAGT program. */ | /* Exec the CIMPROVAGT program. */ |
| |
sprintf(arg1, "%d", to[0]); |
sprintf(toPipeArg, "%d", to[0]); |
sprintf(arg2, "%d", from[1]); |
sprintf(fromPipeArg, "%d", from[1]); |
| |
Log(LL_TRACE, "execl(%s, %s, %s, %s, %s)\n", |
Log(LL_TRACE, "execl(%s, %s, %s, %s, %s, %s, %s)\n", |
path, path, arg1, arg2, request.module); |
path, |
|
path, |
|
setUserContextFlag, |
|
toPipeArg, |
|
fromPipeArg, |
|
request.userName, |
|
request.module); |
| |
/* Flawfinder: ignore */ | /* Flawfinder: ignore */ |
execl(path, path, arg1, arg2, request.module, (char*)0); |
execl( |
|
path, |
Log(LL_SEVERE, "execl(%s, %s, %s, %s, %s): failed\n", |
path, |
path, path, arg1, arg2, request.module); |
setUserContextFlag, |
|
toPipeArg, |
|
fromPipeArg, |
|
request.userName, |
|
request.module, |
|
(char*)0); |
|
|
|
Log(LL_SEVERE, "execl(%s, %s, %s, %s, %s, %s, %s): failed\n", |
|
path, |
|
path, |
|
setUserContextFlag, |
|
toPipeArg, |
|
fromPipeArg, |
|
request.userName, |
|
request.module); |
_exit(1); | _exit(1); |
} | } |
} | } |