summaryrefslogtreecommitdiff
path: root/hscript/script.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-19 20:01:14 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-19 20:01:14 -0500
commitf1ef45bd84b57b40b701e094a9b49daac3761f9f (patch)
treea52df6f8dbd231b5ba07c28aa0cc7c8fda919480 /hscript/script.cc
parent55325a6e780b121f93d35076e4226521ca13ef12 (diff)
downloadhorizon-f1ef45bd84b57b40b701e094a9b49daac3761f9f.tar.gz
horizon-f1ef45bd84b57b40b701e094a9b49daac3761f9f.tar.bz2
horizon-f1ef45bd84b57b40b701e094a9b49daac3761f9f.tar.xz
horizon-f1ef45bd84b57b40b701e094a9b49daac3761f9f.zip
hscript: Implement UserGroups, add tests
Diffstat (limited to 'hscript/script.cc')
-rw-r--r--hscript/script.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/hscript/script.cc b/hscript/script.cc
index 8dbf9e1..0d1c10a 100644
--- a/hscript/script.cc
+++ b/hscript/script.cc
@@ -597,9 +597,10 @@ bool Script::validate() const {
})
) {
output_error("installfile:" + std::to_string(group->lineno()),
- "usergroups: group specified twice");
+ "usergroups: duplicate group name specified");
failures++;
}
+ seen_groups.insert(these.begin(), these.end());
}
/* REQ: Runner.Validate.usergroups.Count */