Mercurial > illumos > illumos-gate
changeset 14183:68927c785889 default tip
4099 SMF methods without absolute paths no longer work
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Approved by: Dan McDonald <danmcd@nexenta.com>
author | Jerry Jelinek <jerry.jelinek@joyent.com> |
---|---|
date | Fri, 06 Sep 2013 09:20:56 -0700 |
parents | 863932c97ce8 |
children | |
files | usr/src/cmd/svc/startd/method.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);