version 1.191.2.12, 2007/01/04 04:57:24
|
version 1.191.2.13, 2007/01/10 02:47:21
|
|
|
{ | { |
#ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION | #ifdef PEGASUS_ENABLE_PRIVILEGE_SEPARATION |
| |
// Check for fingerprint (passed only by the executor). |
// If invoked with "-x <socket>" option, then use executor. |
| |
if (argc < 2 || strcmp(argv[1], EXECUTOR_FINGERPRINT) != 0) |
|
{ | { |
cerr << argv[0]; |
int sock = _extractExecutorSockOpt(argc, argv); |
cerr << ": This is an internal Pegasus program; "; |
|
cerr << "please do not execute it directly. " << endl; |
|
exit(1); |
|
} |
|
|
|
// Remove argv[1] (the fingerprint). |
|
|
|
memcpy(argv + 1, argv + 2, sizeof(char*) * (argc - 1)); |
|
argc--; |
|
| |
// If invoked with "-x <socket>" option, then use executor client. |
if (sock != -1) |
|
Executor::setSock(sock); |
|
} |
| |
Executor::setSock(_extractExecutorSockOpt(argc, argv)); |
#endif /* PEGASUS_ENABLE_PRIVILEGE_SEPARATION */ |
| |
// Ping executor to be sure the sock was valid. | // Ping executor to be sure the sock was valid. |
| |
|
|
exit(1); | exit(1); |
} | } |
| |
#endif |
|
|
|
String pegasusHome = String::EMPTY; | String pegasusHome = String::EMPTY; |
Boolean shutdownOption = false; | Boolean shutdownOption = false; |
Boolean debugOutputOption = false; | Boolean debugOutputOption = false; |