diff options
author | Andreas Schneider <asn@samba.org> | 2014-11-24 17:46:27 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2014-12-04 19:46:07 +0100 |
commit | 192fa109640e1f9bbb7b1845580c6f812c6900a3 (patch) | |
tree | a5ed509144c6fa472a6dba60da52e0ce469dfc1b /source3 | |
parent | 9c7b2538e4b489edb532b77804cca697605a548a (diff) | |
download | samba-192fa109640e1f9bbb7b1845580c6f812c6900a3.tar.gz |
s3-smbstatus: Fix exit code of profile output.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10961
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/status.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c index be7c52fac4..9ce92aafb4 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -363,6 +363,7 @@ static void print_notify_recs(const char *path, TALLOC_CTX *frame = talloc_stackframe(); int ret = 0; struct messaging_context *msg_ctx; + bool ok; sec_init(); load_case_tables(); @@ -462,10 +463,12 @@ static void print_notify_recs(const char *path, switch (profile_only) { case 'P': /* Dump profile data */ - return status_profile_dump(verbose); + ok = status_profile_dump(verbose); + return ok ? 0 : 1; case 'R': /* Continuously display rate-converted data */ - return status_profile_rates(verbose); + ok = status_profile_rates(verbose); + return ok ? 0 : 1; default: break; } |