diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2011-03-31 17:55:39 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2011-03-31 17:55:39 -0700 |
commit | dc07fe4c2b0df40589d4d63287953ee623711fb8 (patch) | |
tree | 0a0745c3ec5a4540d2c8ca7ca78c7ea7a112a6d0 /src/cstore/unionfs/cstore-unionfs.hpp | |
parent | 256da050cc76dcfc123f2d303b48b5fb27ca5ad1 (diff) | |
download | vyatta-cfg-dc07fe4c2b0df40589d4d63287953ee623711fb8.tar.gz vyatta-cfg-dc07fe4c2b0df40589d4d63287953ee623711fb8.zip |
fix for bug 6966
* fix paths issue in edit mode.
Diffstat (limited to 'src/cstore/unionfs/cstore-unionfs.hpp')
-rw-r--r-- | src/cstore/unionfs/cstore-unionfs.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cstore/unionfs/cstore-unionfs.hpp b/src/cstore/unionfs/cstore-unionfs.hpp index afb65a6..7c73225 100644 --- a/src/cstore/unionfs/cstore-unionfs.hpp +++ b/src/cstore/unionfs/cstore-unionfs.hpp @@ -91,6 +91,8 @@ private: // path buffers FsPath mutable_cfg_path; // mutable part of config path FsPath tmpl_path; // whole template path + FsPath orig_mutable_cfg_path; // original mutable cfg path + FsPath orig_tmpl_path; // original template path ////// virtual functions defined in base class // begin path modifiers @@ -128,8 +130,8 @@ private: } }; void reset_paths() { - tmpl_path = tmpl_root; - mutable_cfg_path = ""; + tmpl_path = orig_tmpl_path; + mutable_cfg_path = orig_mutable_cfg_path; }; class UnionfsSavePaths : public SavePaths { |