[OpenAFS-devel] Windows - Client Config error #35

James Peterson james@abrakus.com
Thu, 13 Mar 2003 11:49:40 -0800


AFS Client Configuration dialog box:

Atempts to add a new drive, to the root, with a sub mount name, will
sometimes return error #35.

This patch is based on SnapShot 2003-02-25.

diff -NurEB --exclude-from=exclude bas/src/WINNT/afsd/cm_ioctl.c
upd/src/WINNT/afsd/cm_ioctl.c
--- bas/src/WINNT/afsd/cm_ioctl.c	2001-11-20 22:44:28.000000000 -0800
+++ upd/src/WINNT/afsd/cm_ioctl.c	2003-03-13 11:38:11.000000000 -0800
@@ -1735,7 +1764,7 @@
 			 * leading "/afs" when writing out the submount.
 			 */
 			WritePrivateProfileString("AFS Submounts",
-					submountreqp, &afspath[strlen("/afs")],
+					submountreqp,
(strlen(&afspath[strlen("/afs")]))?&afspath[strlen("/afs")]:"/",
 					"afsdsbmt.ini");

 			strcpy(ioctlp->outDatap, submountreqp);

James Peterson
"Integrity is the Base of Excellence"