mtree: remove use of dhCreator for iterators
Fix a bug in the parser that caused all iterators to have to handle the /set and /unset semantics separately. In addition, provide a helper function to correctly generate the merged set of keywords for a particular entry. Signed-off-by: Aleksa Sarai <asarai@suse.de>
This commit is contained in:
parent
30ae0132eb
commit
36372dd3c8
3 changed files with 23 additions and 36 deletions
1
parse.go
1
parse.go
|
@ -93,6 +93,7 @@ func ParseSpec(r io.Reader) (*DirectoryHierarchy, error) {
|
|||
}
|
||||
}
|
||||
}
|
||||
e.Set = creator.curSet
|
||||
default:
|
||||
// TODO(vbatts) log a warning?
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue