[jcifs] Hosts and shares enumeration

eglass1 at comcast.net eglass1 at comcast.net
Tue Jun 29 20:10:36 GMT 2004


Give me about half an hour.... ;)

Eric

-------------- Original message -------------- 

> On Tue, 29 Jun 2004 13:13:25 +0000 
> eglass1 at comcast.net wrote: 
> 
> > I did some testing on this; it appears to affect at least back to 0.9.0. 
> > Adding the following to SmbFile.java at line 591-ish appears to fix it: 
> > 
> > this.auth = context.auth; 
> > 
> > It appears that the SmbFile constructor used in the listFiles methods 
> > leaves the auth field null, causing it to fall back to the account 
> > specified by"jcifs.smb.client.*" (defaulting to GUEST). Setting it to the 
> > context SmbFile's auth seems to fix things. 
> 
> Mmm, yes. I suspect that got clobbered some how. I have applied this 
> fix as well as a similar one to mkdirs() where credentials were not 
> propogating as necessary. I will wait until later tonoght to release 
> 0.9.4 just to see if anything else pops up. 
> 
> Mike 
> 
> -- 
> Greedo shoots first? Not in my Star Wars. 
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the jcifs mailing list