From 04b6c1303cd0977275c6da22f823cf3c3924333e Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Fri, 18 Nov 2005 03:18:54 +0000 Subject: 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) --- source3/client/client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/client/client.c') 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); -- cgit