projects
/
oweals
/
dinit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76c07be
)
Fix processing of "run-as" parameter.
author
Davin McCall
<davmac@davmac.org>
Sun, 21 Jan 2018 14:34:58 +0000
(14:34 +0000)
committer
Davin McCall
<davmac@davmac.org>
Sun, 21 Jan 2018 14:34:58 +0000
(14:34 +0000)
src/load_service.cc
patch
|
blob
|
history
diff --git
a/src/load_service.cc
b/src/load_service.cc
index 59322ea6160d691ee50663d9975054b3fe2c78e5..ba2bfe409f68cf566037175ace1cfc19f1bf6193 100644
(file)
--- a/
src/load_service.cc
+++ b/
src/load_service.cc
@@
-591,7
+591,7
@@
service_record * dirload_service_set::load_service(const char * name)
}
else if (setting == "run-as") {
string run_as_str = read_setting_value(i, end, nullptr);
- run_as_uid = parse_uid_param(
"run-as"
, name, &run_as_gid);
+ run_as_uid = parse_uid_param(
run_as_str
, name, &run_as_gid);
}
else {
throw service_description_exc(name, "Unknown setting: " + setting);