From b2cc81be69cf955571fda3bffc756d5470f92336 Mon Sep 17 00:00:00 2001 From: James Peterson Date: Fri, 14 Mar 2003 20:00:44 +0000 Subject: [PATCH] STABLE12-winnt-client-config-submount-fix-20030314 "Atempts to add a new drive, to the root, with a sub mount name, will sometimes return error #35" (cherry picked from commit 69a511d5b8a051f4961c3a6503566537893cb96a) --- src/WINNT/afsd/cm_ioctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/WINNT/afsd/cm_ioctl.c b/src/WINNT/afsd/cm_ioctl.c index ac51257015..f2016fbe87 100644 --- a/src/WINNT/afsd/cm_ioctl.c +++ b/src/WINNT/afsd/cm_ioctl.c @@ -1850,8 +1850,9 @@ long cm_IoctlMakeSubmount(smb_ioctl_t *ioctlp, cm_user_t *userp) sprintf(ioctlp->outDatap, "auto%ld", nextAutoSubmount); WritePrivateProfileString("AFS Submounts", ioctlp->outDatap, - &afspath[lstrlen("/afs")], - "afsdsbmt.ini"); + (strlen(&afspath[lstrlen("/afs")])) ? + &afspath[lstrlen("/afs")]:"/", + "afsdsbmt.ini"); ioctlp->outDatap += strlen(ioctlp->outDatap) +1; lock_ReleaseMutex(&cm_Afsdsbmt_Lock);