summaryrefslogtreecommitdiff
path: root/hscript/user.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-18 23:24:48 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-19 01:42:55 -0500
commit2374778a55f9380ee5b821eb9563e20aad1bc3de (patch)
tree17ed4eda5d83f48d15c11cb8979be5f270440417 /hscript/user.cc
parentda01034909eba11be184cedb408f34732a33c4cd (diff)
downloadhorizon-2374778a55f9380ee5b821eb9563e20aad1bc3de.tar.gz
horizon-2374778a55f9380ee5b821eb9563e20aad1bc3de.tar.bz2
horizon-2374778a55f9380ee5b821eb9563e20aad1bc3de.tar.xz
horizon-2374778a55f9380ee5b821eb9563e20aad1bc3de.zip
hscript: More LCOV fixes
Diffstat (limited to 'hscript/user.cc')
-rw-r--r--hscript/user.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/hscript/user.cc b/hscript/user.cc
index 8382f1c..9bc6864 100644
--- a/hscript/user.cc
+++ b/hscript/user.cc
@@ -132,6 +132,8 @@ bool RootPassphrase::execute(ScriptOptions options) const {
return true;
}
+ /* LCOV_EXCL_START */
+ /* This was tested on gwyn during development. */
std::ifstream old_shadow("/target/etc/shadow");
if(!old_shadow) {
output_error("installfile:" + std::to_string(this->lineno()),
@@ -139,8 +141,6 @@ bool RootPassphrase::execute(ScriptOptions options) const {
return false;
}
- /* LCOV_EXCL_START */
- /* This was tested on gwyn during development. */
std::stringstream shadow_stream;
char shadow_line[200];
/* Discard root. */