С https://git.altlinux.org/gears/s/samba.git?p=samba.git;a=blobdiff;f=extra/smb.conf.default;h=12eb21351063b6c2a2b8228c49da9c4df280160c;hp=1067b1a0504ce25f6aa5722d764925c1842d1270;hb=58cb01501e404788444c34331f3b630ea2664735;hpb=c9301960d25bb0344aec9f18a7538c8e1d5dae63 происходит включение дополнительного конфига в smb.conf. Если этот дополнительный конфиг отсутствует на файловой системе, то код ```console [user@host dir]$ cat test.py import optparse import samba.getopt as options parser = optparse.OptionParser() sambaopts = options.SambaOptions(parser) parm = sambaopts.get_loadparm() ``` падает с ``` [user@host dir]$ python3 test.py Traceback (most recent call last): File "/usr/src/test.py", line 8, in <module> parm = sambaopts.get_loadparm() File "/usr/lib64/python3/site-packages/samba/getopt.py", line 92, in get_loadparm self._lp.load_default() RuntimeError: Unable to load default file ```
samba-4.16.6-alt2 -> sisyphus: Mon Nov 07 2022 Evgeny Sinelnikov <sin@altlinux> 4.16.6-alt2 - Don't treat a missing include file as an error in handle_include(). This behavior differs between the source3 and source4 parts of Samba. So, it should be the same and just not an error (Closes #44214).