patch for clidfs.c: pre-solution for " Unable to follow dfs referral "

Gerald (Jerry) Carter jerry at samba.org
Fri May 19 14:37:14 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nicholas N. wrote:
> Hello,
> 
> There is a patch for clidfs.c (3.0.22) that should 
> solve following problem:
> 
> Seems there is an error in split_dfs_path() that causes 
> string like  //server/some_share/some_path1/some_path
> to be splitted into server=server/some_share/some_path1 and share=some_path.
> 
> That causes a "Unable to follow dfs referral" problem during 
> connection to complex dfs-root sub-shares.

Nicholas,

I'm reviewing this patch and it sends smbclient into an
infinite loop of

  split_dfs_path: nodepath=\windc\public\somedir
  cli_resolve_path: Opening connection to TARGET path
    server=windc,share=public
  cli_cm_open: IN server=windc,share=public
  cli_cm_open: >> Connection FOUND c->desthost=windc,c->share=public
  cli_cm_open: OUT c->desthost=windc,c->share=public,old_share=public
  cli_cm_set_mntpoint: mnt=
  dos_clean_name []
  cli_resolve_path: ** targetpath=\deep\
  cli_resolve_path: making RECURSIVE call
    newmount=,targetpath=\deep\,newpath=
  cli_resolve_path:       IN mountpt=,path=\deep\
  cli_resolve_path:
    rootcli->desthost=windc,rootcli->share=public
  cli_dfs_make_full_path: IN server=windc,share=public,dir=\deep
  cli_dfs_make_full_path: OUT path=\windc\public\deep
  cli_resolve_path: ** PRE ** fullpath=\windc\public\deep
  cli_cm_open: IN server=windc,share=IPC$
  cli_cm_open: >> Connection FOUND c->desthost=windc,c->share=IPC$
  cli_cm_open: OUT c->desthost=windc,c->share=IPC$,old_share=IPC$

Could you recheck your code against the latest SAMBA_3_0 tree ?
Thanks.



- -- cheers, jerry

$ cat ~/.signature
=====================================================================
Samba                                    ------- http://www.samba.org
Centeris                         -----------  http://www.centeris.com
"What man is a man who does not make the world better?"      --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFEbdgaIR7qMdg1EfYRAlWuAJ9RgWAN1ppFVI8k42NETEE0nfV7YQCeI7iN
ZjxwzwxaJd8bFu5Q4pXMmmI=
=UDWo
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list