smbclient //samba1/public -U Administrator%bleaK.er -W Y2K -p 139
smbclient //samba1/public -U Administrator%bleaK.er -W COLOR -p 139
result in the SMBsessetup&X request containing the
domain name GLASS (from smb.conf)
Fixed in 3.0 and HEAD.
The client wasn't using the value of the workgroup stored by the common popt
handling code for the -W option.
Current bugzilla permissions prevent me from taking and closing the bug though.
The same bug exists for rpcclient too.
Also fixed in 3.0 and HEAD.
Your fix breaks the '-s' switch, because the popt common stuff sets
dyn_CONFIGFILE and you are now using dyn_CONFIGFILE before it can be set
I broke -s fixing -W. A fair trade I think. (-:
Jelmer has some ideas for fixing some of the mess so I'm reassigning it to him.
*** Bug 157 has been marked as a duplicate of this bug. ***
This is still broken in the latest SAMBA_3_0 cvs tree.
Make sure we save the -W value and restore it
originally reported against 3.0alpha23. Bugzilla spring cleaning.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.