diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-19 20:01:14 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-19 20:01:14 -0500 |
commit | f1ef45bd84b57b40b701e094a9b49daac3761f9f (patch) | |
tree | a52df6f8dbd231b5ba07c28aa0cc7c8fda919480 /hscript/script.cc | |
parent | 55325a6e780b121f93d35076e4226521ca13ef12 (diff) | |
download | horizon-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.cc | 3 |
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 */ |