summaryrefslogtreecommitdiff
path: root/src/cstore
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-08-09 17:20:50 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-08-09 17:20:50 -0700
commit97bf9794e381317ca89d15009b6827dc6ff9d78c (patch)
tree20932e36f7371abaea2504888dcb48454b1f7198 /src/cstore
parent61101aa02584ccaa574fc99c0dd9366a6819b31b (diff)
downloadvyatta-cfg-97bf9794e381317ca89d15009b6827dc6ff9d78c.tar.gz
vyatta-cfg-97bf9794e381317ca89d15009b6827dc6ff9d78c.zip
provide default edit level
Diffstat (limited to 'src/cstore')
-rw-r--r--src/cstore/unionfs/cstore-unionfs.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cstore/unionfs/cstore-unionfs.cpp b/src/cstore/unionfs/cstore-unionfs.cpp
index 3ac6052..1cfccd4 100644
--- a/src/cstore/unionfs/cstore-unionfs.cpp
+++ b/src/cstore/unionfs/cstore-unionfs.cpp
@@ -192,6 +192,7 @@ UnionfsCstore::UnionfsCstore(bool use_edit_level)
* from environment. only the actual CLI operations use them.
* so here make it an option.
*/
+ mutable_cfg_path = "/";
if (use_edit_level) {
// set up path strings
if ((val = getenv(C_ENV_EDIT_LEVEL.c_str()))) {
@@ -241,6 +242,7 @@ UnionfsCstore::UnionfsCstore(const string& sid, string& env)
// set up path strings using level vars
char *val;
+ mutable_cfg_path = "/";
if ((val = getenv(C_ENV_EDIT_LEVEL.c_str()))) {
mutable_cfg_path = val;
}