aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/env_universal_common.cpp
diff options
context:
space:
mode:
authorGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-11-18 16:58:45 +0800
committerGravatar David Adam <zanchey@ucc.gu.uwa.edu.au>2015-11-28 14:34:27 +0800
commitce360bcfe3dfde87f42326b6b38a567934f7f482 (patch)
tree8987832d6e8c4fd3f9fc88a3a0f26e1070281558 /src/env_universal_common.cpp
parent789657456a76ec6a08de17db2a4e0d33394c96b4 (diff)
env_universal_common.cpp: don't bother trying nonexistent path
Diffstat (limited to 'src/env_universal_common.cpp')
-rw-r--r--src/env_universal_common.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/env_universal_common.cpp b/src/env_universal_common.cpp
index 45333a71..d5d14378 100644
--- a/src/env_universal_common.cpp
+++ b/src/env_universal_common.cpp
@@ -803,6 +803,11 @@ bool env_universal_t::sync(callback_data_list_t *callbacks)
Prior versions of fish used a hard link scheme to support file locking on lockless NFS. The risk here is that if the process crashes or is killed while holding the lock, future instances of fish will not be able to obtain it. This seems to be a greater risk than that of data loss on lockless NFS. Users who put their home directory on lockless NFS are playing with fire anyways.
*/
const wcstring &vars_path = explicit_vars_path.empty() ? default_vars_path() : explicit_vars_path;
+
+ if (vars_path.empty()) {
+ debug(2, "No universal variable path available");
+ return false;
+ }
/* If we have no changes, just load */
if (modified.empty())