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"
This commit is contained in:
James Peterson 2003-03-13 20:36:28 +00:00 committed by Derrick Brashear
parent 7187d07423
commit 3c22e61e23

View File

@ -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);