Fix processing of "run-as" parameter.
authorDavin McCall <davmac@davmac.org>
Sun, 21 Jan 2018 14:34:58 +0000 (14:34 +0000)
committerDavin McCall <davmac@davmac.org>
Sun, 21 Jan 2018 14:34:58 +0000 (14:34 +0000)
src/load_service.cc

index 59322ea6160d691ee50663d9975054b3fe2c78e5..ba2bfe409f68cf566037175ace1cfc19f1bf6193 100644 (file)
@@ -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);