mirror of
https://github.com/samba-team/samba.git
synced 2025-07-30 19:42:05 +03:00
python: call fault_setup() if samba.getopt is used
This means we have a samba command line tool written in python, e.g. samba-tool We should get the samba typicall backtraces instead of just "Segmentation fault (core dumped)". BUG: https://bugzilla.samba.org/show_bug.cgi?id=13469 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Jun 12 11:04:55 CEST 2018 on sn-devel-144
This commit is contained in:
committed by
Andreas Schneider
parent
3ddd852710
commit
454edac226
@ -34,6 +34,8 @@ class SambaOptions(optparse.OptionGroup):
|
||||
"""General Samba-related command line options."""
|
||||
|
||||
def __init__(self, parser):
|
||||
from samba import fault_setup
|
||||
fault_setup()
|
||||
from samba.param import LoadParm
|
||||
optparse.OptionGroup.__init__(self, parser, "Samba Common Options")
|
||||
self.add_option("-s", "--configfile", action="callback",
|
||||
|
Reference in New Issue
Block a user