From 52e13e00baadc11c135170cd60a8b3c4f253a694 Mon Sep 17 00:00:00 2001 From: Jerry Jelinek Date: Fri, 6 Sep 2013 09:20:56 -0700 Subject: [PATCH] 4099 SMF methods without absolute paths no longer work Reviewed by: Richard Lowe Approved by: Dan McDonald --- usr/src/cmd/svc/startd/method.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/src/cmd/svc/startd/method.c b/usr/src/cmd/svc/startd/method.c index eed6c680ad..cc9ce6768c 100644 --- a/usr/src/cmd/svc/startd/method.c +++ b/usr/src/cmd/svc/startd/method.c @@ -851,7 +851,8 @@ method_run(restarter_inst_t **instp, int type, int *exit_code) if ((pend = strchr(method, ' ')) != NULL) *pend = '\0'; - if (stat64(method, &sbuf) == -1 && errno == ENOENT) { + if (*method == '/' && stat64(method, &sbuf) == -1 && + errno == ENOENT) { log_instance(inst, B_TRUE, "Missing start method (%s), " "changing state to maintenance.", method); restarter_free_method_context(mcp); -- 2.11.4.GIT