]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-winnt-client-config-submount-fix-20030313
authorJames Peterson <james@abrakus.com>
Thu, 13 Mar 2003 20:37:12 +0000 (20:37 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 13 Mar 2003 20:37:12 +0000 (20:37 +0000)
"Atempts to add a new drive, to the root, with a sub mount name, will
sometimes return error #35"

(cherry picked from commit 3c22e61e23aae56cf8e40776c4327f7d640efa10)

src/WINNT/afsd/cm_ioctl.c

index 8ae076640db1bdb86f307f3e326e9524e694406d..51ba32c20330b7fa2b4336c6538e5d089999dc60 100644 (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);