diff options
author | Michael Larson <slioch@slioch.vyatta.com> | 2010-05-19 14:54:44 -0700 |
---|---|---|
committer | Michael Larson <slioch@slioch.vyatta.com> | 2010-05-19 14:54:44 -0700 |
commit | 846abdb265aa2673816fbf5f8e515c62d443a84b (patch) | |
tree | 01eee91070264e399b503f5aa8928583094cbaad /src/common | |
parent | 3d91d264f5961786f34494d30281de04504916c7 (diff) | |
download | vyatta-cfg-846abdb265aa2673816fbf5f8e515c62d443a84b.tar.gz vyatta-cfg-846abdb265aa2673816fbf5f8e515c62d443a84b.zip |
modified tag limit == 1. Now when set this node will only allow a single instance. todo update the parsing structure to support a signed value to support embedded tag node
value of 1 (current behavior)--will address this in the future (or when this behavior is requested).
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/unionfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/unionfs.c b/src/common/unionfs.c index 151c6ce..2f7cd70 100644 --- a/src/common/unionfs.c +++ b/src/common/unionfs.c @@ -227,10 +227,10 @@ retrieve_data(char* rel_data_path, GNode *node, char* root, NODE_OPERATION op) //either multi or tag--shouldn't have made a difference, but arkady was confused. vn->_config._multi = (def.tag | def.multi); - if (def.def_tag > 0) { + if (def.def_tag != 0) { vn->_config._limit = def.def_tag; } - else if (def.def_multi > 0) { + else if (def.def_multi != 0) { vn->_config._limit = def.def_multi; } else { |