version 1.11, 2008/02/22 19:09:51
|
version 1.12, 2008/03/20 16:18:20
|
|
|
| |
#if defined(PEGASUS_USE_RELEASE_DIRS) && defined(PEGASUS_CORE_DIR) | #if defined(PEGASUS_USE_RELEASE_DIRS) && defined(PEGASUS_CORE_DIR) |
workingDirectory = PEGASUS_CORE_DIR; | workingDirectory = PEGASUS_CORE_DIR; |
#else |
#elif defined(PEGASUS_DEBUG) |
workingDirectory = "/"; |
workingDirectory = getenv("PEGASUS_TMP"); |
#endif | #endif |
|
if (workingDirectory == NULL) |
|
{ |
|
workingDirectory = "/"; |
|
} |
if (chdir(workingDirectory) != 0) | if (chdir(workingDirectory) != 0) |
{ | { |
Log(LL_WARNING, "Failed to change working directory to %s", | Log(LL_WARNING, "Failed to change working directory to %s", |