diff options
-rwxr-xr-x | source4/scripting/bin/samba-tool | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/bin/samba-tool b/source4/scripting/bin/samba-tool index c4ea814166..8ec6514bbf 100755 --- a/source4/scripting/bin/samba-tool +++ b/source4/scripting/bin/samba-tool @@ -36,7 +36,7 @@ if len(sys.argv) > 1: try: retval = cmd._run("samba-tool", subcommand, *args) except SystemExit, e: - retval = -1 + retval = e.code except Exception, e: cmd.show_command_error(e) retval = 1 |