summaryrefslogtreecommitdiff
path: root/src/cstore/unionfs/cstore-unionfs.hpp
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2011-01-27 12:07:44 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2011-01-27 12:07:44 -0800
commitfa99a35967bcaf6a42bd58bcb2808769d4223a50 (patch)
treefc0a107b2a7c861adf5aceb2bdff55430a0980e0 /src/cstore/unionfs/cstore-unionfs.hpp
parent617a9b3c8915f1e9934bd9a0e0272fafb9c31d59 (diff)
downloadvyatta-cfg-fa99a35967bcaf6a42bd58bcb2808769d4223a50.tar.gz
vyatta-cfg-fa99a35967bcaf6a42bd58bcb2808769d4223a50.zip
rework/simplify path handling
Diffstat (limited to 'src/cstore/unionfs/cstore-unionfs.hpp')
-rw-r--r--src/cstore/unionfs/cstore-unionfs.hpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/cstore/unionfs/cstore-unionfs.hpp b/src/cstore/unionfs/cstore-unionfs.hpp
index 2dc2c0b..70d4cf6 100644
--- a/src/cstore/unionfs/cstore-unionfs.hpp
+++ b/src/cstore/unionfs/cstore-unionfs.hpp
@@ -95,7 +95,14 @@ private:
push_path(tmpl_path, new_comp);
};
void push_tmpl_path_tag() {
- push_tmpl_path(C_TAG_NAME);
+ /* not using push_path => not "escaped".
+ * NOTE: this is the only interface that can push tmpl_path "unescaped".
+ * this means the pop_tmpl_path() function potentially may return
+ * incorrect value if used in combination with this function.
+ * however, since current C_TAG_NAME doesn't contain any escape
+ * sequences, this cannot happen for now.
+ */
+ tmpl_path /= C_TAG_NAME;
};
string pop_tmpl_path() {
return pop_path(tmpl_path);
@@ -103,9 +110,6 @@ private:
void push_cfg_path(const string& new_comp) {
push_path(mutable_cfg_path, new_comp);
};
- void push_cfg_path_val() {
- push_cfg_path(C_VAL_NAME);
- };
string pop_cfg_path() {
return pop_path(mutable_cfg_path);
};