Bug 44214 - Missing dependency for include
Summary: Missing dependency for include
Alias: None
Product: Sisyphus
Classification: Development
Component: samba-common-client (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Evgeny Sinelnikov
QA Contact: qa-sisyphus
Depends on:
Reported: 2022-11-03 16:06 MSK by Stanislav Levin
Modified: 2022-11-07 10:45 MSK (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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. Если этот дополнительный конфиг отсутствует на файловой системе, то код

[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
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).