diff options
author | Andreas Schneider <asn@samba.org> | 2014-11-24 17:46:27 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-11-24 21:13:51 +0100 |
commit | 0d5adad07b572e6f7c4ac1a560593469df48352c (patch) | |
tree | 3a3935165dc5d6bf751ba06daada7fd1f704fa4e /source3/utils | |
parent | bcb0d46bb27ba78cd045926a81894d1f09d2c02b (diff) | |
download | samba-0d5adad07b572e6f7c4ac1a560593469df48352c.tar.gz samba-0d5adad07b572e6f7c4ac1a560593469df48352c.tar.xz samba-0d5adad07b572e6f7c4ac1a560593469df48352c.zip |
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>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Nov 24 21:13:51 CET 2014 on sn-devel-104
Diffstat (limited to 'source3/utils')
-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 64c2a93e23..4e1dae78e8 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -364,6 +364,7 @@ int main(int argc, const char *argv[]) int ret = 0; struct messaging_context *msg_ctx; char *db_path; + bool ok; sec_init(); load_case_tables(); @@ -463,10 +464,12 @@ int main(int argc, const char *argv[]) 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; } |