Bug 2903 - Can see only extension-less files on a Win31 host
Summary: Can see only extension-less files on a Win31 host
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: smbclient (show other bugs)
Version: 3.0.10
Hardware: All Linux
: P3 normal
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-20 02:15 UTC by Paolo Redaelli
Modified: 2005-08-29 14:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Redaelli 2005-07-20 02:15:38 UTC
I'm running Ubuntu Linux Hoary.
It's smbclient (version 3.0.10) see only extension-less files when the host
serving the share is a Windows for Workgroup or Windows 3.1
I'm quite sure it's a bug into libsmbclient since also smbget package shows the
same behaviour.
This bug didn't show in samba 2.2 (used before I upgraded my former Debian box
to Ubuntu).
I discovered this bug because the backup tar archives periodically made with
crontab are now almost empty.

Perhaps it is useful to point out - even if smbfs is not part of samba -that
also linux kernel module smbfs fails to access to those Win31 shares. The share
is mounted but when you access it you get i/o errors. Again when I was on Debian
it didn't show.
Cheers
 Paolo
Comment 1 Derrell Lipman 2005-07-20 05:43:25 UTC
I'm not sure where you're actually seeing this problem.  The smbclient utility
does not use the libsmbclient library (contrary to what one might think).  Would
you please do two things for me:

1. Run make in examples/libsmbclient and then run the "testbrowse" utility. 
When it asks for a URL, give it
smb://<server_name>/<share_name>/<path_to_folder> and enter appropriate
authentication information as requested.  Does this utility properly display the
list of file names including those with extensions?  (This one does use
libsmbclient, vs the smbclient utility which does not.)

2. If you could provide a packet capture of the failing requests, that would
help emensely in tracking down the problem.  To generate a packet capture, do this:

  tcpdump -s 0 -w noextensions.pcap smb

(the character after -s is a zero)

and then run both smbclient (which fails) and testbrowse.  After running both of
those, CTRL-C the tcpdump process.  Attach the capture to this bug report.

With the above information, we'll be able to look into the problem.

Thanks,

Derrell
Comment 2 Paolo Redaelli 2005-08-04 07:04:56 UTC
I think I've mis-described the bug; infact I discovered both smbclient
(which doesn't use libsmbclient) and smbget (which actually link to
libsmbclient) shares some common (supposedly wrong) behaving.
I'm using samba from an Ubuntu Hoary installation.
Here's a log of a session with smbclient:

paolo@barnard:~/tmp$ smbclient -N //cls_c/hd_cls_c
smb: \> ls
  COM                                 D        0  Wed Mar  4 11:40:16 1998
  COM_OLD                             D        0  Sun Oct 23 22:48:56 1994
  DAT                                 D        0  Wed Mar  4 11:40:16 1998
  DAT_OLD                             D        0  Sun Oct 23 22:48:56 1994
  DOS                                 D        0  Wed Oct  5 07:39:18 1994
  EVD                                 D        0  Wed Oct  5 07:36:48 1994
  MOUSE                               D        0  Wed Oct  5 07:37:42 1994
  PRG                                 D        0  Wed Mar  4 11:40:16 1998
  PRG_OLD                             D        0  Sun Oct 23 22:48:56 1994
  START                               D        0  Sun Oct 23 22:44:42 1994
  TAR                                 D        0  Mon Oct 24 03:58:40 1994
  USER                                D        0  Tue Oct  4 00:49:42 1994
  UTY                                 D        0  Sun Oct 23 22:46:26 1994
  WINDOWS                             D        0  Mon Nov  3 16:18:32 1997
  AS                                  A      145  Wed Mar  4 12:36:34 1998
  NULL                                A       26  Wed Oct  5 07:44:46 1994

                41782 blocks of size 8192. 26464 blocks available
smb: \> ls *.*
  IO.SYS                            HSR    40790  Wed Oct 27 12:00:00 1993
  MSDOS.SYS                         HSR    38172  Wed Oct 27 12:00:00 1993
  COM                                 D        0  Wed Mar  4 11:40:16 1998
  COM_OLD                             D        0  Sun Oct 23 22:48:56 1994
  DAT                                 D        0  Wed Mar  4 11:40:16 1998
  DAT_OLD                             D        0  Sun Oct 23 22:48:56 1994
  DOS                                 D        0  Wed Oct  5 07:39:18 1994
  EVD                                 D        0  Wed Oct  5 07:36:48 1994
  MOUSE                               D        0  Wed Oct  5 07:37:42 1994
  PRG                                 D        0  Wed Mar  4 11:40:16 1998
  PRG_OLD                             D        0  Sun Oct 23 22:48:56 1994
  START                               D        0  Sun Oct 23 22:44:42 1994
  TAR                                 D        0  Mon Oct 24 03:58:40 1994
  USER                                D        0  Tue Oct  4 00:49:42 1994
  UTY                                 D        0  Sun Oct 23 22:46:26 1994
  WINDOWS                             D        0  Mon Nov  3 16:18:32 1997
  AS                                  A      145  Wed Mar  4 12:36:34 1998
  AUTOEXEC.BAT                        A      176  Sat Dec  7 11:21:10 2002
  AUTOEXEC.OLD                        A      329  Tue Dec  2 15:51:06 1997
  BACKUP.INI                          H       25  Wed Oct  5 07:33:42 1994
  BCK_DSK.BAT                         A       96  Wed Mar  2 16:55:10 1994
  BCK_ITA.RES                        AH     3787  Fri Jun  3 14:56:08 1994
  BETON.BAT                           A      291  Tue Dec  2 16:39:36 1997
  CHKLIST.MS                          A      378  Sun Oct 23 22:53:04 1994
  COMMAND.COM                         A    57207  Wed Oct 27 12:00:00 1993
  CONFIG.SYS                          A      329  Mon Nov 10 14:02:06 1997
  COPYAUTO.BAT                        A       47  Wed Mar  2 17:11:16 1994
  DATCOM.EXE                          A    54100  Mon Jun  1 16:46:40 1998
  DBLSPACE.BIN                      HSR    64246  Wed Oct 27 12:00:00 1993
  DELX.BAT                            A       51  Thu Apr  6 14:30:42 1995
  EVD.INF                             H     1182  Thu May 12 15:50:58 1994
  LMOUSE.INI                          A       57  Tue Apr  6 19:40:04 1993
  LVESA.OVL                           A     9242  Fri Oct  2 06:20:00 1992
  MOUSE.COM                           A    40382  Fri Oct  2 06:20:00 1992
  MOVE.EXE                            A    18319  Thu Sep 30 06:20:00 1993
  NULL                                A       26  Wed Oct  5 07:44:46 1994
  OLICOGI.INF                        AH      240  Tue Aug 30 14:43:00 1994
  OLIDOSI.INF                        AH      390  Wed Feb 16 11:22:18 1994
  OLIWINI.INF                        AH      201  Wed Feb 16 11:25:10 1994
  ORGAI.INF                          AH     1400  Mon Mar 28 15:30:50 1994
  OUR.EXE                             A   175222  Thu Aug  4 14:35:48 1994
  PC.EXE                              A   172035  Sat Mar 12 15:00:38 1988
  RDOSITA.INF                        AH     2484  Wed Jan 12 16:26:08 1994
  REBOOT.EXE                          A      554  Tue Mar  1 14:21:36 1994
  RMOUSEP.INF                        AH      438  Wed Jun 16 15:27:54 1993
  RWINITA.INF                        AH     6426  Wed Jun 23 13:38:38 1993
  SW.INF                              A      199  Wed Oct  5 07:33:42 1994
  TARATURA.BAT                        A       54  Wed Oct 16 09:41:32 1996
  USER.INF                           AH      426  Thu Jul 21 16:59:22 1994
  VBRUN100.DLL                        A   271264  Mon Nov  8 09:34:56 1993
  VERSION.VER                         A       36  Wed Oct  5 07:33:34 1994
  WINA20.386                          A     9349  Wed Oct 27 12:00:00 1993
  WORKSI.INF                         AH     2128  Thu Mar 10 17:14:40 1994
  AUTOEXEC.000                        A      154  Sat Dec  7 11:21:10 2002

                41782 blocks of size 8192. 26464 blocks available
smb: \> prompt off
smb: \> recurse on
smb: \> mget *
getting file \DAT\FARINA of size 278401 as FARINA (-0,0 kb/s) (average 0,0 kb/s)
getting file \EVD\DISK2\NT\DISK1 of size 77 as DISK1 (-0,0 kb/s) (average 0,0 kb/s)
getting file \EVD\NULL of size 0 as NULL (-0,0 kb/s) (average 0,0 kb/s)
getting file \PRG\NULL of size 26 as NULL (-0,0 kb/s) (average 0,0 kb/s)
getting file \PRG_OLD\NULL of size 26 as NULL (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW2 of size 596 as WFW2 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW3 of size 2811 as WFW3 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW4 of size 3448 as WFW4 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW5 of size 347 as WFW5 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW6 of size 471 as WFW6 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW7 of size 456 as WFW7 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW8 of size 3149 as WFW8 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW9 of size 3777 as WFW9 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW10 of size 329 as WFW10 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW11 of size 176 as WFW11 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\NETWORKS of size 402 as NETWORKS (-0,0 kb/s) (average 0,0
kb/s)
getting file \WINDOWS\PROTOCOL of size 794 as PROTOCOL (-0,0 kb/s) (average 0,0
kb/s)
getting file \WINDOWS\SERVICES of size 6003 as SERVICES (-0,0 kb/s) (average 0,0
kb/s)
getting file \WINDOWS\WFW12 of size 456 as WFW12 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW13 of size 3160 as WFW13 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW14 of size 3802 as WFW14 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW15 of size 329 as WFW15 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW16 of size 176 as WFW16 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW17 of size 456 as WFW17 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW18 of size 3161 as WFW18 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW19 of size 3802 as WFW19 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW20 of size 329 as WFW20 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW21 of size 176 as WFW21 (-0,0 kb/s) (average 0,0 kb/s)
getting file \AS of size 145 as AS (-0,0 kb/s) (average 0,0 kb/s)
getting file \NULL of size 26 as NULL (-0,0 kb/s) (average 0,0 kb/s)
smb: \> mget *.*
getting file \IO.SYS of size 40790 as IO.SYS (-0,0 kb/s) (average 0,0 kb/s)
getting file \MSDOS.SYS of size 38172 as MSDOS.SYS (-0,0 kb/s) (average 0,0 kb/s)
getting file \DAT\FARINA of size 278401 as FARINA (-0,0 kb/s) (average 0,0 kb/s)
getting file \EVD\DISK2\NT\DISK1 of size 77 as DISK1 (-0,0 kb/s) (average 0,0 kb/s)
getting file \EVD\NULL of size 0 as NULL (-0,0 kb/s) (average 0,0 kb/s)
getting file \PRG\NULL of size 26 as NULL (-0,0 kb/s) (average 0,0 kb/s)
getting file \PRG_OLD\NULL of size 26 as NULL (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW2 of size 596 as WFW2 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW3 of size 2811 as WFW3 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW4 of size 3448 as WFW4 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW5 of size 347 as WFW5 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW6 of size 471 as WFW6 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW7 of size 456 as WFW7 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW8 of size 3149 as WFW8 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW9 of size 3777 as WFW9 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW10 of size 329 as WFW10 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW11 of size 176 as WFW11 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\NETWORKS of size 402 as NETWORKS (-0,0 kb/s) (average 0,0
kb/s)
getting file \WINDOWS\PROTOCOL of size 794 as PROTOCOL (-0,0 kb/s) (average 0,0
kb/s)
getting file \WINDOWS\SERVICES of size 6003 as SERVICES (-0,0 kb/s) (average 0,0
kb/s)
getting file \WINDOWS\WFW12 of size 456 as WFW12 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW13 of size 3160 as WFW13 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW14 of size 3802 as WFW14 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW15 of size 329 as WFW15 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW16 of size 176 as WFW16 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW17 of size 456 as WFW17 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW18 of size 3161 as WFW18 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW19 of size 3802 as WFW19 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW20 of size 329 as WFW20 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINDOWS\WFW21 of size 176 as WFW21 (-0,0 kb/s) (average 0,0 kb/s)
getting file \AS of size 145 as AS (-0,0 kb/s) (average 0,0 kb/s)
getting file \AUTOEXEC.BAT of size 176 as AUTOEXEC.BAT (-0,0 kb/s) (average 0,0
kb/s)
getting file \AUTOEXEC.OLD of size 329 as AUTOEXEC.OLD (-0,0 kb/s) (average 0,0
kb/s)
getting file \BACKUP.INI of size 25 as BACKUP.INI (-0,0 kb/s) (average 0,0 kb/s)
getting file \BCK_DSK.BAT of size 96 as BCK_DSK.BAT (-0,0 kb/s) (average 0,0 kb/s)
getting file \BCK_ITA.RES of size 3787 as BCK_ITA.RES (-0,0 kb/s) (average 0,0 kb/s)
getting file \BETON.BAT of size 291 as BETON.BAT (-0,0 kb/s) (average 0,0 kb/s)
getting file \CHKLIST.MS of size 378 as CHKLIST.MS (-0,0 kb/s) (average 0,0 kb/s)
getting file \COMMAND.COM of size 57207 as COMMAND.COM (-0,0 kb/s) (average 0,0
kb/s)
getting file \CONFIG.SYS of size 329 as CONFIG.SYS (-0,0 kb/s) (average 0,0 kb/s)
getting file \COPYAUTO.BAT of size 47 as COPYAUTO.BAT (-0,0 kb/s) (average 0,0 kb/s)
getting file \DATCOM.EXE of size 54100 as DATCOM.EXE (-0,0 kb/s) (average 0,0 kb/s)
getting file \DBLSPACE.BIN of size 64246 as DBLSPACE.BIN (-0,0 kb/s) (average
0,0 kb/s)
getting file \DELX.BAT of size 51 as DELX.BAT (-0,0 kb/s) (average 0,0 kb/s)
getting file \EVD.INF of size 1182 as EVD.INF (-0,0 kb/s) (average 0,0 kb/s)
getting file \LMOUSE.INI of size 57 as LMOUSE.INI (-0,0 kb/s) (average 0,0 kb/s)
getting file \LVESA.OVL of size 9242 as LVESA.OVL (-0,0 kb/s) (average 0,0 kb/s)
getting file \MOUSE.COM of size 40382 as MOUSE.COM (-0,0 kb/s) (average 0,0 kb/s)
getting file \MOVE.EXE of size 18319 as MOVE.EXE (-0,0 kb/s) (average 0,0 kb/s)
getting file \NULL of size 26 as NULL (-0,0 kb/s) (average 0,0 kb/s)
getting file \OLICOGI.INF of size 240 as OLICOGI.INF (-0,0 kb/s) (average 0,0 kb/s)
getting file \OLIDOSI.INF of size 390 as OLIDOSI.INF (-0,0 kb/s) (average 0,0 kb/s)
getting file \OLIWINI.INF of size 201 as OLIWINI.INF (-0,0 kb/s) (average 0,0 kb/s)
getting file \ORGAI.INF of size 1400 as ORGAI.INF (-0,0 kb/s) (average 0,0 kb/s)
getting file \OUR.EXE of size 175222 as OUR.EXE (-0,0 kb/s) (average 0,0 kb/s)
getting file \PC.EXE of size 172035 as PC.EXE (-0,0 kb/s) (average 0,0 kb/s)
getting file \RDOSITA.INF of size 2484 as RDOSITA.INF (-0,0 kb/s) (average 0,0 kb/s)
getting file \REBOOT.EXE of size 554 as REBOOT.EXE (-0,0 kb/s) (average 0,0 kb/s)
getting file \RMOUSEP.INF of size 438 as RMOUSEP.INF (-0,0 kb/s) (average 0,0 kb/s)
getting file \RWINITA.INF of size 6426 as RWINITA.INF (-0,0 kb/s) (average 0,0 kb/s)
getting file \SW.INF of size 199 as SW.INF (-0,0 kb/s) (average 0,0 kb/s)
getting file \TARATURA.BAT of size 54 as TARATURA.BAT (-0,0 kb/s) (average 0,0 kb/s)
getting file \USER.INF of size 426 as USER.INF (-0,0 kb/s) (average 0,0 kb/s)
getting file \VBRUN100.DLL of size 271264 as VBRUN100.DLL (-0,0 kb/s) (average
0,0 kb/s)
getting file \VERSION.VER of size 36 as VERSION.VER (-0,0 kb/s) (average 0,0 kb/s)
getting file \WINA20.386 of size 9349 as WINA20.386 (-0,0 kb/s) (average 0,0 kb/s)
getting file \WORKSI.INF of size 2128 as WORKSI.INF (-0,0 kb/s) (average 0,0 kb/s)
getting file \AUTOEXEC.000 of size 154 as AUTOEXEC.000 (-0,0 kb/s) (average 0,0
kb/s)
smb: \>


As you can see smbclient can see files with extensions, but only proving
the usual *.* pattern. A plain "mget" command get extension-less files,
while "mget *.*" gets all files with extension, but none without, and
recursing into subdirectories it does retrieve only extension-less files
(infact 
smb: \> ls dat/*.*
  .                                   D        0  Wed Mar  4 11:40:16 1998
  ..                                  D        0  Wed Mar  4 11:40:16 1998
  BOL                                 D        0  Wed Mar  4 13:20:42 1998
  DTR                                 D        0  Wed Mar  4 11:44:00 1998
  CONFBOLL.DAT                        R    11422  Wed Oct  6 17:01:58 2004
  TABELLA.DAT                         A      520  Thu Aug  4 10:53:24 2005
  BOLLE.DAT                           A    15600  Thu Aug  4 10:50:40 2005
  0805.MAG                            A     1680  Thu Aug  4 10:53:22 2005
  02010805.DTR                        A    21120  Mon Aug  1 16:42:18 2005
)

Perhaps is it something related to configuration iusses?
I suspect that this is not a bug, but I haven't experimented such
behaviour with previous (i.e. 2.2) releases of samba

PS: I'm not sure but I think I've "spammed" samba-bugs@samba.org when I replied
to Derrell's suggestion this morning...
Comment 3 Jeremy Allison 2005-08-04 17:51:15 UTC
Can you try and reproduce this with the latest 3.0.20 pre release please so we
can see if this is still an issue.
Jeremy.
Comment 4 Gerald (Jerry) Carter (dead mail address) 2005-08-29 14:28:06 UTC
please reopen if the bug is still present in 3.0.20.  Thanks.