Hi Derrell, on OS/2, when using the latest samba3 svn revision (11837), smbclient returns an error, when the "cd" command is used: smb: \> cd tmp_gk cd \tmp_gk\: ERRDOS - ERRbadfunc (Invalid function.) In client.c, line 294 if ( targetcli->protocol >= PROTOCOL_LANMAN2 && !targetcli->win95 ) { it is assumed, that the LANMAN2.1 protocol is supporting the later used SMB_QUERY_FILE_BASIC_INFO 0x101 info level call. But it does not! SOLUTION: line 294 should be modified: if ( targetcli->protocol > PROTOCOL_LANMAN2 && !targetcli->win95 ) { I have checked that locally, it works for me now. I have not seen any unwanted side-effects so far. Best wishes. Guenter Kukkukk
Hmmm "on OS/2, ..." could be mis-leading. smbclient is running on a Linux box against an OS/2 SMB share. Guenter
I can prove this bug exists in smbclient 3.0.20b and SVN build 11833. When I changed client.c as Guenter wrote (and recompiled), smbclient works fine with OS/2.
Applied, thanks. Jeremy.
Hmmm. Probably should restrict doing a info level 0x101 to NT1 protocol level. Jeremy.