Testcase to show the bug in smbclient with tar,ls,mget

Domenico Viggiani viggiani at hotmail.com
Thu Apr 6 13:17:34 GMT 2000


I'm posting this message in charge of Denis MARS (France), because he is not 
a subscriber of teh list and I worked with him about the same problem.

Domenico Viggiani
----------------------------------------------------------------

Hello,

I worked on this problem since three weeks and now i really
give up. Clearly i can't go further without your help.

I hesitate to send you this bug report as i am aware of the numerous mails 
you have. I (try to) follow your recommended procedures(faq,mailing 
list,...) but now i am in the black hole.

1/ The story begins with this use of smbclient:

sgi 18% /usr/samba/bin/smbclient \\\\kiowa\\C$ -U Administrateur
added interface ip=10.44.0.40 bcast=10.44.0.255 nmask=255.255.255.0
Password:
Domain=[IRCN] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
smb: \> cd myinst
smb: \myinst\> archive 0
smb: \myinst\> tarmode quiet
tarmode is now full, system, hidden, noreset, quiet
smb: \myinst\> tar c inst1.tar
tar: dumped 632 files and directories
Total bytes written: 182655488
smb: \myinst\> archive 0
smb: \myinst\> tarmode quiet
tarmode is now full, system, hidden, noreset, quiet
smb: \myinst\> tar c inst2.tar
tar: dumped 632 files and directories
Total bytes written: 182858240
smb: \myinst\> archive 0
smb: \myinst\> tarmode quiet
tarmode is now full, system, hidden, noreset, quiet
smb: \myinst\> tar c inst3.tar
tar: dumped 632 files and directories
Total bytes written: 182655488
smb: \myinst\> quit
sgi 19% /usr/samba/bin/smbclient \\\\kiowa\\C$ -U Administrateur
added interface ip=10.44.0.40 bcast=10.44.0.255 nmask=255.255.255.0
Password:
Domain=[IRCN] OS=[Windows NT 4.0] Server=[NT LAN Manager 4.0]
smb: \> cd myinst
smb: \myinst\> archive 0
smb: \myinst\> tarmode quiet
tarmode is now full, system, hidden, noreset, quiet
smb: \myinst\> tar c inst4.tar
tar: dumped 633 files and directories
Total bytes written: 182860800
smb: \myinst\> archive 0
smb: \myinst\> tarmode quiet
tarmode is now full, system, hidden, noreset, quiet
smb: \myinst\> tar c inst5.tar
tar: dumped 632 files and directories
Total bytes written: 182655488
smb: \myinst\> quit

sgi 20% ls -al
total 1787744
drwxr-xr-x    2 si       staff            99 Apr  5 14:33 .
drwxr-xr-x   39 si       staff          4096 Apr  4 14:29 ..
-rw-r--r--    1 si       staff     182978560 Apr  5 14:19 inst1.tar
-rw-r--r--    1 si       staff     183181312 Apr  5 14:27 inst2.tar
-rw-r--r--    1 si       staff     182978560 Apr  5 14:30 inst3.tar
-rw-r--r--    1 si       staff     183184384 Apr  5 14:32 inst4.tar
-rw-r--r--    1 si       staff     182978560 Apr  5 14:49 inst5.tar

Of course the good tar is inst4.tar


2/ After i look in mailing list for "bug smbclient" on deja.com.
I see Domenico Viggiani message describing something equivalent
with mget usage:

smbclient \\machine\share
prompt
recurse
mget *


3/ Finally, I try the following:

script lsfile1
smbclient //machine/share password
recurse
ls
quit
^D

script lsfile2
smbclient //machine/share password
recurse
ls
quit
^D

diff lstfile1 lstfile2

I have different files


4/ All these test have been made under the following environnement:

Samba 2.0.6 binary distribution for SGI IRIX 6.x
installed on Origin 200 IRIX 6.5.4m 2xR12000 1G memory
The share is on an NT 4 Workstation Service pack 6 French Intel 350Mz 64K 
memory
N.B. I made NO modifications in the Registry...

5/ I try to debug and i was lucky because i have a good tar and a bad one 
with debug level 5 but i never suceed to obtain a bad tar with level 10.


6/ I think it is a problem of timing when smbclient parses the directory 
entries but i have no solution...


7/ I can provide a tgz file containing:
ltestparm:result of testparm on SGI machine
script:the original script in point 1/
linst4:the good list of the share obtained by tar tvf inst4.tar > linst4
diff-linst4_linst1
diff-linst4_linst2:diff between good tar and bad ones
tar1trunc:Truncape script of good tar debug level 5
tar2trunc:Truncape script of bad tar debug level 5

Now, I put this bottle in the sea and i hope...

Whatever you consider this message, thank you for all the
job you are doing.

Best regards and waiting...

Denis MARS (France)
d.mars at ircn.asso.fr


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_tar.tgz
Type: application/x-compressed
Size: 14496 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20000406/92f81a5e/test_tar.bin


More information about the samba mailing list