diff options
Diffstat (limited to 'source4/scripting/bin/samba-tool')
-rwxr-xr-x | source4/scripting/bin/samba-tool | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/scripting/bin/samba-tool b/source4/scripting/bin/samba-tool index 2e92041076..c191865152 100755 --- a/source4/scripting/bin/samba-tool +++ b/source4/scripting/bin/samba-tool @@ -77,6 +77,8 @@ if __name__ == '__main__': try: retval = cmd._run("samba-tool", subcommand, *args) - sys.exit(retval) + except SystemExit, e: + retval = -1 except Exception, e: cmd.show_command_error(e) + sys.exit(retval) |