[jcifs] Hosts and shares enumeration

Michael B Allen mba2000 at ioplex.com
Tue Jun 29 18:52:25 GMT 2004

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.


Greedo shoots first? Not in my Star Wars.

More information about the jcifs mailing list