[Samba] Re: Missing files as seen by Explorer on a client (was Need helpon this) **********FIXED******************

David Collier-Brown davecb at canada.sun.com
Thu Aug 1 10:55:14 GMT 2002


Javid Abdul-AJAVID1 wrote:
> 
> I really appreciate all your responses on this.
> 
> I might not have fixed it by looking at samba logs but i noticed there was
> directory in user unix directory with wildcard * as folder name

	Thank you, kind sir!

	Now, I'll do a quick test on my system to see that	
	is_in_path doesn't return "no name list" ...

	Alas, it does: the behavior is as follows,
	doing a smbclient "cd projects" follwoed by "dir" 
	on my projects directory:

...
2002/08/01 13:33:22, 3] smbd/process.c:switch_message(665)
  switch message SMBchkpth (pid 10931)
[2002/08/01 13:33:22, 4] smbd/uid.c:change_to_user(118)
  change_to_user: Skipping user change - already user
[2002/08/01 13:33:22, 5] smbd/filename.c:unix_convert(145)
  unix_convert called on file "\projects"
[2002/08/01 13:33:22, 3] lib/util.c:unix_clean_name(391)
  unix_clean_name [/projects]
[2002/08/01 13:33:22, 5] smbd/mangle.c:is_8_3(337)
  Checking projects for 8.3
[2002/08/01 13:33:22, 5] smbd/statcache.c:stat_cache_add(132)
  stat_cache_add: Added entry PROJECTS -> projects
[2002/08/01 13:33:22, 5] smbd/filename.c:unix_convert(215)
  conversion finished projects -> projects
[2002/08/01 13:33:22, 8] lib/util.c:is_in_path(1108)
  is_in_path: projects
[2002/08/01 13:33:22, 8] lib/util.c:is_in_path(1113)
  is_in_path: no name list.

		There's one, in normal (correct?) processing

[2002/08/01 13:33:22, 3] lib/util.c:unix_clean_name(391)
  unix_clean_name [projects]
[2002/08/01 13:33:22, 3] smbd/reply.c:reply_chkpth(1144)
  chkpth projects mode=11
[2002/08/01 13:33:22, 5] lib/util.c:show_msg(272)
  size=35
 ...

[2002/08/01 13:33:24, 3] smbd/process.c:switch_message(665)
  switch message SMBtrans2 (pid 10931)
[2002/08/01 13:33:24, 4] smbd/uid.c:change_to_user(118)
  change_to_user: Skipping user change - already user
[2002/08/01 13:33:24, 3] smbd/trans2.c:call_trans2findfirst(665)
  call_trans2findfirst: dirtype = 22, maxentries = 512,
close_after_first=0, c!
[2002/08/01 13:33:24, 5] smbd/trans2.c:call_trans2findfirst(689)
  path=\projects\*
[2002/08/01 13:33:24, 5] smbd/filename.c:unix_convert(145)
  unix_convert called on file "\projects\*"
[2002/08/01 13:33:24, 3] lib/util.c:unix_clean_name(391)
  unix_clean_name [/projects/*]
[2002/08/01 13:33:24, 5] smbd/mangle.c:is_8_3(337)
  Checking * for 8.3
[2002/08/01 13:33:24, 5] smbd/filename.c:unix_convert(220)
  unix_convert begin: name = projects/*, dirpath = projects, start = *
[2002/08/01 13:33:24, 5] smbd/filename.c:unix_convert(350)
  New file *
[2002/08/01 13:33:24, 8] lib/util.c:is_in_path(1108)
  is_in_path: projects/*
[2002/08/01 13:33:24, 8] lib/util.c:is_in_path(1113)
  is_in_path: no name list.

	and there's another.

...
[2002/08/01 13:33:31, 5] smbd/mangle.c:name_map_mangle(988)
  name_map_mangle( jsm.tar.Z, need83 = True, cache83 = True, 14 )
  is_in_path: .
[2002/08/01 13:33:24, 8] lib/util.c:is_in_path(1113)
  is_in_path: no name list.
[2002/08/01 13:33:24, 8] lib/util.c:is_in_path(1108)
  is_in_path: ..
[2002/08/01 13:33:24, 8] lib/util.c:is_in_path(1113)
  is_in_path: no name list.
[2002/08/01 13:33:24, 8] lib/util.c:is_in_path(1108)
  is_in_path: CCRA
[2002/08/01 13:33:24, 8] lib/util.c:is_in_path(1113)
  is_in_path: no name list.
[2002/08/01 13:33:24, 8] lib/util.c:is_in_path(1108)
  is_in_path: pry
[2002/08/01 13:33:24, 8] lib/util.c:is_in_path(1113)
  is_in_path: no name list.
[2002/08/01 13:33:24, 8] lib/util.c:is_in_path(1108)
  is_in_path: gifs
[2002/08/01 13:33:24, 8] lib/util.c:is_in_path(1113)
  is_in_path: no name list.
[2002/08/01 13:33:24, 8] lib/util.c:is_in_path(1108)
  is_in_path: people
...

This is from a directory containing ...
> echo *
> CCRA Index Offerings PACP Permedia Plugin RCS SLAMS career dbench deferred done examples explorer fbasic gifs httpget index.html ktools misc-papers overture people perf personal pkg pry ptools publications sis visa volunteers website wget xx

And is in reference to:
>         Whoops, I was wrong in the previous message:
>         it looks like a samba-side problem!
> 
> /*******************************************************************
>  Utility function used to decide if the last component
>  of a path matches a (possibly wildcarded) entry in a namelist.
> ********************************************************************/
> BOOL is_in_path(char *name, name_compare_entry *namelist)
> 
>         The functiont looks for name in namelist, and
>         almost every other list passed in is empty!
> 
>         This caused it to return false, and probably
>         not return the name to Windows.
> 
>         This look sorta un-good... Abdul, what  version
>         samb are you running?  Folks, has anyone fixed a
>         bug on this lately?
> 
> --dave
> --
> David Collier-Brown,           | Always do right. This will gratify
> Performance & Engineering      | some people and astonish the rest.
> Americas Customer Engineering, |                      -- Mark Twain
> (905) 415-2849                 | davecb at canada.sun.com

-- 
David Collier-Brown,           | Always do right. This will gratify 
Performance & Engineering      | some people and astonish the rest.
Americas Customer Engineering, |                      -- Mark Twain
(905) 415-2849                 | davecb at canada.sun.com




More information about the samba mailing list