[PATCH] Add libsmbclient list shares test

Jeremy Allison jra at samba.org
Tue Aug 28 22:14:16 UTC 2018


On Tue, Aug 28, 2018 at 01:52:41PM -0700, Jeremy Allison via samba-technical wrote:
> On Mon, Aug 27, 2018 at 05:29:22PM +0200, Andreas Schneider via samba-technical wrote:
> > Hi,
> > 
> > the attached patch adds a test for listing shares using libsmbclient and fixes 
> > teh tests to run against a target with smbd.
> > 
> > 
> > Please review and push if OK.
> 
> 
> Yes, the autobuild on sn-devel is failing in a similar way:
> 
> he last 50 lines of log messages:
> 
> DIR: testsmb2_file.dat
> DIR: test1
> DIR: smbprn.PEtUsH
> DIR: smbprn.2bHf6H
> DIR: smbprn.x8XDTI
> DIR: x64
> DIR: smbprn.EjIY8g
> DIR: smbprn.m6hww2
> DIR: testeas
> DIR: smbprn.bFSojH
> DIR: smbprn.o34B9r
> DIR: smbprn.PNWF4Q
> DIR: samba3_errordir
> DIR: smbprn.DGu6Zt
> DIR: smbprn.OHrQPU
> DIR: mkdir_dup
> DIR: smbprn.vSzEPg
> DIR: smbprn.nEeR1c
> DIR: smbprn.u7PBTh
> DIR: smbprn.HcrCAM
> DIR: testfsctl.dat
> DIR: smbprn.sfBzj5
> DIR: smbprn.IXuwku
> DIR: session_reauth5_UP8Lt3Wh.d
> DIR: smbprn.zCwCFU
> DIR: smbprn.hCXv3v
> DIR: session_reauth5_3x5qmGk8.d
> DIR: compound_interim_dir
> DIR: smbprn.MNJb3w
> DIR: smbprn.PZkVLk
> DIR: testfile
> UNEXPECTED(failure): samba3.libsmbclient.list_shares(ad_dc)
> REASON: Exception: Exception: ../source4/torture/libsmbclient/libsmbclient.c:574: Expression `ipc_share_found' failed: Failed to list IPC$ share

Ah, looking at the full log I see:

Listing: smb://Administrator:locDCpass1@addc/tmp

- which explains why it's listing the contents
of /tmp. Now, how did list_shares get invoked
with /tmp appended to the smb url ?



More information about the samba-technical mailing list