summaryrefslogtreecommitdiff
path: root/source3/client/client.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-11-18 03:18:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:28 -0500
commit04b6c1303cd0977275c6da22f823cf3c3924333e (patch)
treeeffe19b2f7eb753b270406ef33f476d6664d079d /source3/client/client.c
parentd09beee040b62d9b783869bc9af7f17301e3f5e0 (diff)
downloadsamba-04b6c1303cd0977275c6da22f823cf3c3924333e.tar.gz
samba-04b6c1303cd0977275c6da22f823cf3c3924333e.tar.bz2
samba-04b6c1303cd0977275c6da22f823cf3c3924333e.zip
r11770: BUG 2718: don't use qpathinfo_basic() call when remote server is Win9x or the do_cd() call will fail
(This used to be commit be31c2a105ae2b6e655530190c939caae1b41294)
Diffstat (limited to 'source3/client/client.c')
-rw-r--r--source3/client/client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index f849738da0..697b4e9569 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -288,9 +288,10 @@ static int do_cd(char *newdir)
if ( strequal(targetpath,"\\" ) )
return 0;
- /* use a trans2_qpathinfo to test directories for modern servers */
+ /* Use a trans2_qpathinfo to test directories for modern servers.
+ Except Win9x doesn't support the qpathinfo_basic() call..... */
- if ( targetcli->protocol >= PROTOCOL_LANMAN2 ) {
+ if ( targetcli->protocol >= PROTOCOL_LANMAN2 && !targetcli->win95 ) {
if ( !cli_qpathinfo_basic( targetcli, targetpath, &sbuf, &attributes ) ) {
d_printf("cd %s: %s\n", dname, cli_errstr(targetcli));
pstrcpy(cur_dir,saved_dir);