From fed924dab020a72116602efdb94bb033eb9f3460 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 5 Aug 2002 21:54:09 +0000 Subject: [PATCH] specify cwd before vfs-mount --- panda/src/putil/virtualFileSystem.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/panda/src/putil/virtualFileSystem.cxx b/panda/src/putil/virtualFileSystem.cxx index c7d422a104..4f85f2eef8 100644 --- a/panda/src/putil/virtualFileSystem.cxx +++ b/panda/src/putil/virtualFileSystem.cxx @@ -446,6 +446,9 @@ get_global_ptr() { // mount. _global_ptr->mount("/", "/", 0); + // And our initial cwd comes from the environment. + _global_ptr->chdir(ExecutionEnvironment::get_cwd()); + // Then, we add whatever mounts are listed in the Configrc file. Config::ConfigTable::Symbol mounts; config_util.GetAll("vfs-mount", mounts); @@ -495,10 +498,6 @@ get_global_ptr() { } } } - - // Finally, our cwd is initially from the environment, if that - // maps into our new VFS. - _global_ptr->chdir(ExecutionEnvironment::get_cwd()); } return _global_ptr;