From: James Peterson Date: Thu, 13 Mar 2003 20:37:12 +0000 (+0000) Subject: STABLE12-winnt-client-config-submount-fix-20030313 X-Git-Tag: openafs-stable-1_2_9~42 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9773f2df194a7da46f384e80cc3830a1084d6943;p=packages%2Fo%2Fopenafs.git STABLE12-winnt-client-config-submount-fix-20030313 "Atempts to add a new drive, to the root, with a sub mount name, will sometimes return error #35" (cherry picked from commit 3c22e61e23aae56cf8e40776c4327f7d640efa10) --- diff --git a/src/WINNT/afsd/cm_ioctl.c b/src/WINNT/afsd/cm_ioctl.c index 8ae076640..51ba32c20 100644 --- a/src/WINNT/afsd/cm_ioctl.c +++ b/src/WINNT/afsd/cm_ioctl.c @@ -1735,7 +1735,9 @@ long cm_IoctlMakeSubmount(smb_ioctl_t *ioctlp, cm_user_t *userp) * 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);