mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
Fix use of chdir
This commit is contained in:
parent
fd76cff5f0
commit
95edd07b25
@ -420,7 +420,7 @@ add_files(const vector_string ¶ms) {
|
||||
}
|
||||
|
||||
// Change current working directory, if requested.
|
||||
if (got_chdir_to && chdir(chdir_to.c_str()) != 0) {
|
||||
if (got_chdir_to && !chdir_to.chdir()) {
|
||||
cout << "Failed to chdir to " << chdir_to << ": " << strerror(errno) << endl;
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user