Bug 44214

Summary: Missing dependency for include
Product: Sisyphus Reporter: Stanislav Levin <slev>
Component: samba-common-clientAssignee: Evgeny Sinelnikov <sin>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: sin
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Stanislav Levin 2022-11-03 16:06:08 MSK
С 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
```
Comment 1 Repository Robot 2022-11-07 10:45:04 MSK
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).