From 95edd07b25d5313f2dd2a80f0feff7e5a8639957 Mon Sep 17 00:00:00 2001 From: rdb Date: Sat, 29 Mar 2014 13:50:55 +0000 Subject: [PATCH] Fix use of chdir --- panda/src/downloadertools/multify.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/downloadertools/multify.cxx b/panda/src/downloadertools/multify.cxx index d9736336c5..460c34b9a5 100644 --- a/panda/src/downloadertools/multify.cxx +++ b/panda/src/downloadertools/multify.cxx @@ -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; }