svn commit: samba r11770 - branches/SAMBA_3_0/source/client trunk/source/client

jerry at samba.org jerry at samba.org
Fri Nov 18 03:18:56 GMT 2005


Author: jerry
Date: 2005-11-18 03:18:54 +0000 (Fri, 18 Nov 2005)
New Revision: 11770

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11770

Log:
BUG 2718: don't use qpathinfo_basic() call when remote server is Win9x or the do_cd() call will fail
Modified:
   branches/SAMBA_3_0/source/client/client.c
   trunk/source/client/client.c


Changeset:
Modified: branches/SAMBA_3_0/source/client/client.c
===================================================================
--- branches/SAMBA_3_0/source/client/client.c	2005-11-17 22:40:10 UTC (rev 11769)
+++ branches/SAMBA_3_0/source/client/client.c	2005-11-18 03:18:54 UTC (rev 11770)
@@ -288,9 +288,10 @@
 	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);

Modified: trunk/source/client/client.c
===================================================================
--- trunk/source/client/client.c	2005-11-17 22:40:10 UTC (rev 11769)
+++ trunk/source/client/client.c	2005-11-18 03:18:54 UTC (rev 11770)
@@ -288,9 +288,10 @@
 	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);



More information about the samba-cvs mailing list