Mercurial > illumos > illumos-gate
changeset 957:5d0f4378dc4e
6284138 cryptoadm stop (still) fails if kcfd is not running
author | darrenm |
---|---|
date | Mon, 21 Nov 2005 08:33:54 -0800 |
parents | f9d0be3d33a1 |
children | e23be1072975 |
files | usr/src/cmd/cmd-crypto/cryptoadm/start_stop.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/cmd-crypto/cryptoadm/start_stop.c Mon Nov 21 08:10:33 2005 -0800 +++ b/usr/src/cmd/cmd-crypto/cryptoadm/start_stop.c Mon Nov 21 08:33:54 2005 -0800 @@ -87,9 +87,13 @@ if (err != 0) { cryptoerror(LOG_STDERR, gettext( - "failed to stop cryptographic framework daemon - %s."), + "no kcfd available to stop - %s."), strerror(err)); - return (SMF_EXIT_MON_OFFLINE); + /* + * We return with SMF_EXIT_OK because this was a request + * to stop something that wasn't running. + */ + return (SMF_EXIT_OK); } return (SMF_EXIT_OK);