Created attachment 8172 [details] Prosposed patches done by Metze When specifying unknown options or passing a non-existing filename, 'samba-tool' displays a stacktrace: user@host:/data/git/samba/master> ./bin/samba-tool testparm -s bla ERROR(runtime): uncaught exception - Unable to load file bla File "bin/python/samba/netcmd/__init__.py", line 175, in _run return self.run(*args, **kwargs) File "bin/python/samba/netcmd/testparm.py", line 85, in run lp = sambaopts.get_loadparm() File "bin/python/samba/getopt.py", line 88, in get_loadparm self._lp.load(self._configfile) A shorter message would be more useful for users.
These patches fix the issue for me: user@host:/data/git/samba/master> ./bin/samba-tool testparm -s bla ERROR(runtime): uncaught exception - Unable to load file bla
Patches need to be pushed to master also.
Created attachment 8173 [details] Additional patch to fix typo in samba-tool --help
(In reply to comment #3) > Created attachment 8173 [details] > Additional patch to fix typo in samba-tool --help Pushed to master by Volker (76fa5ee5d).
Comment on attachment 8172 [details] Prosposed patches done by Metze The first patch is under discussion... The 2nd one should be ok for master and then 4.0
(In reply to comment #6) > Comment on attachment 8172 [details] > Prosposed patches done by Metze > > The first patch is under discussion... > > The 2nd one should be ok for master and then 4.0 Pushed second patch to autobuild-v4-0-test.
Re-assigning to Metze.
Created attachment 8200 [details] Patch for v4-0-test
Comment on attachment 8200 [details] Patch for v4-0-test ok
==> Karo
Pushed to v4-0-test-autobuild.
Pushed to v4-0-test. Closing out bug report. Thanks!