Javid Abdul-AJAVID1
2002-Aug-01 08:54 UTC
[Samba] RE: Missing files as seen by Explorer on a client (was Need help on this) **********FIXED******************
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 once i removed it, samba showed up all the files and directory. am not sure what would * as folder name caused this behaviour may be samba was trying to interpret * as something else not sure...... or it was windows exlorer could not understand * and showed up some but not alll anyway thanks again -----Original Message----- From: David Collier-Brown [mailto:davecb@canada.sun.com] Sent: Thursday, August 01, 2002 9:56 AM To: Abdul Javid {AJAVID1} Cc: samba@lists.samba.org; samba-technical@lists.samba.org Subject: Missing files as seen by Explorer on a client (was Need help on this) Abdul Javid {AJAVID1} wrote:> > I am trying to find why some files and directories are not visible > from W2K windows explorers though they exist on unix home directory > permissions are fine ( 755 )on unix side > > following is the portion of log ( level 10 ) > > [2002/07/31 16:16:05, 8] lib/util.c:is_in_path(1143) > is_in_path: public_html > [2002/07/31 16:16:05, 8] lib/util.c:is_in_path(1148) > is_in_path: no name list. > [2002/07/31 16:16:05, 8] lib/util.c:is_in_path(1143) > is_in_path: weekly_report > [2002/07/31 16:16:05, 8] lib/util.c:is_in_path(1148) > is_in_path: no name list. > > *****public_html is not visilbe > > [2002/07/31 16:16:05, 8] lib/util.c:is_in_path(1143) > is_in_path: bin > [2002/07/31 16:16:05, 8] lib/util.c:is_in_path(1148) > is_in_path: no name list. > [2002/07/31 16:16:05, 8] lib/util.c:is_in_path(1143) > is_in_path: .Xauthority > [2002/07/31 16:16:05, 8] lib/util.c:is_in_path(1148) > is_in_path: no name list. > > ******bin and .Xauthority is visible > > my question is how do find errors with opening directories > to me both looks same > > any body can tell me what is_in_path does and what "no name list" > means >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@canada.sun.com
Andy Neillans
2002-Aug-01 09:06 UTC
[Samba] RE: Missing files as seen by Explorer on a client (was Need help on this) **********FIXED******************
Windows can not handle: \ / : * ? " < > | In any file or folder names. Andy [snip]> 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 > > once i removed it, samba showed up all the files and directory. > > am not sure what would * as folder name caused this behaviour > > may be samba was trying to interpret * as something else not > sure...... > > or it was windows exlorer could not understand * and showed > up some but not > alll[snip]
David Collier-Brown
2002-Aug-01 10:55 UTC
[Samba] Re: Missing files as seen by Explorer on a client (was Need helpon this) **********FIXED******************
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 nameThank 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 xxAnd 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@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@canada.sun.com