version 1.1.2.2, 2007/01/10 02:47:20
|
version 1.1.2.3, 2007/01/11 16:01:23
|
|
|
char path[EXECUTOR_BUFFER_SIZE], | char path[EXECUTOR_BUFFER_SIZE], |
int uid, | int uid, |
int gid, | int gid, |
int sock) |
int sock, |
|
const char* repositoryDir) |
{ | { |
char sockStr[EXECUTOR_BUFFER_SIZE]; | char sockStr[EXECUTOR_BUFFER_SIZE]; |
char repositoryDir[EXECUTOR_BUFFER_SIZE]; |
|
char username[EXECUTOR_BUFFER_SIZE]; | char username[EXECUTOR_BUFFER_SIZE]; |
char** execArgv; | char** execArgv; |
| |
|
|
execArgv[1] = "-x"; | execArgv[1] = "-x"; |
execArgv[2] = strdup(sockStr); | execArgv[2] = strdup(sockStr); |
| |
/* Locate repository directory. */ |
|
|
|
if (LocateRepositoryDirectory(argc, argv, repositoryDir) != 0) |
|
Fatal(FL, "failed to locate repository directory"); |
|
|
|
/* Check whether repository directory exists. */ | /* Check whether repository directory exists. */ |
| |
if (AccessDir(repositoryDir) != 0) | if (AccessDir(repositoryDir) != 0) |