[Samba] Wrong results in dir listing with wildcard
Harry Jede
walk2sun at arcor.de
Thu Jun 10 14:45:08 MDT 2010
On Donnerstag, 10. Juni 2010 wrote Guy Rouillier:
> My Samba server is a new install of Ubuntu 10.4 x86 with Samba 3.4.7.
> Samba is configured as standalone, and shares only a single directory
> /data for backup purposes.
>
> I stumbled across this issue while trying to get my original problem
> fixed (which I did, thanks to this helpful list.) Run the following
> in a temporary directory:
>
> echo abc > ActivePerl-5.10.1.1007-MSWin32-x86-291969.msi
> echo abc > ActivePython-2.6.5.12-win32-x86.msi
> echo abc > ActiveTcl8.6.0.0b2.291226-win32-ix86-threaded.exe
> echo abc > authenclientcp.bat
> echo abc > authencp.bat
> echo abc > authenejbcp.bat
>
> I put this into a batch file. By trial and error, I discovered that
> the results are the same if you (1) just run from a shell script on
> the Samba server, or (2) run it on Windows and copy the results to
> the Samba server.
>
> With those files in place, from a Windows box, I get the following
> results from issuing directory listings with a wildcard:
>
> N:\temp>dir ac*
> Volume in drive N is data
> Volume Serial Number is 0160-027E
>
> Directory of N:\temp
>
> 06/10/2010 03:33 PM 6 authenejbcp.bat
> 06/10/2010 03:33 PM 6
> ActivePython-2.6.5.12-win32-x86.msi 06/10/2010 03:33 PM
> 6
> ActiveTcl8.6.0.0b2.291226-win32-ix86-threaded.exe
> 06/10/2010 03:33 PM 6
> ActivePerl-5.10.1.1007-MSWin32-x86-291969.msi
> 4 File(s) 24 bytes
> 0 Dir(s) 533,019,426,816 bytes free
>
> N:\temp>dir au*
> Volume in drive N is data
> Volume Serial Number is 0160-027E
>
> Directory of N:\temp
>
> 06/10/2010 03:33 PM 6 authenejbcp.bat
> 06/10/2010 03:33 PM 6 authencp.bat
> 06/10/2010 03:33 PM 6 authenclientcp.bat
> 3 File(s) 18 bytes
> 0 Dir(s) 533,019,484,160 bytes free
>
> Notice that authenejbcp.bat is included in both listings. If someone
> else can confirm they are seeing the same thing, I'll file a bug
> report. Thanks.
Read the man page of smb.conf, section "NAME MANGLING"
> --
> Guy Rouillier
--
Harry Jede
More information about the samba
mailing list