# HG changeset patch # User Jerry Jelinek # Date 1378484456 25200 # Node ID 68927c7858895959383559f013f284729f17e388 # Parent 863932c97ce8ae9bbeaac9fc1a74d41a64739097 4099 SMF methods without absolute paths no longer work Reviewed by: Richard Lowe Approved by: Dan McDonald diff -r 863932c97ce8 -r 68927c785889 usr/src/cmd/svc/startd/method.c --- a/usr/src/cmd/svc/startd/method.c Wed Sep 04 14:48:51 2013 -0700 +++ b/usr/src/cmd/svc/startd/method.c Fri Sep 06 09:20:56 2013 -0700 @@ -851,7 +851,8 @@ 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);