[Pkg-samba-maint] Bug#1022826: Bug#1022826: samba-common-bin: testparm fails if given a config file, due to libpopt 1.19+dfsg-1
Arnaud Rebillout
arnaudr at kali.org
Wed Oct 26 16:34:00 BST 2022
On Wed, 26 Oct 2022 18:13:51 +0300 Michael Tokarev <mjt at tls.msk.ru> wrote:
> Control: tag -1 + moreinfo unreproducible
>
> 26.10.2022 17:45, Arnaud Rebillout wrote:
> > Package: samba-common-bin
> > Severity: normal
> > User: devel at kali.org
> > Usertags: origin-kali
> >
> > Dear Maintainer,
> >
> > This command fails:
> >
> > # testparm /etc/samba/smb.conf --suppress-prompt
> > Load smb config files from <<garbage-characters-here>>
> > Error loading services.
>
> Which version of samba-common-bin is that?
>
> I was about to close this bug right away because you didn't
> specify a version. But I'd give it a try anyway.
>
> The thing is that the libpopt is bundled with samba sources, and
> current samba in debian unstable (4.16.6+dfsg-3) already has the
> necessary fixes for it. There should be, in theory, no issues with
> the fixed/new libpopt.
>
> I just tested that one with current libpopt, - it works as expected
> here.
Sorry about forgetting the version.
So this is version 2:4.16.6+dfsg-3. Right now I can fire a Debian sid
container and reproduce the issue with:
# apt update && apt install -y smbclient
# testparm /etc/samba/smb.conf --suppress-prompt
Load smb config files from gW???U
Error loading services.
NB: you MUST pass /etc/samba/smb.conf in argument to trigger the issue.
The issue with libpopt seems to be documented at
https://github.com/rpm-software-management/popt/issues/80.
However I didn't notice that samba embeds its own libpopt, so now I'm
confused. Are you 100% sure it's the embedded lib that is used?
# ldd /usr/bin/testparm | grep popt
libpopt.so.0 => /lib/x86_64-linux-gnu/libpopt.so.0 (0x00007f52a45d1000)
Or does the line above suggests that it uses the shared library? (real
question, I'm not familiar with ldd)
Cheers, and thanks for the quick reply.
Arnaud
More information about the Pkg-samba-maint
mailing list