char temp[64];
char newGroupName[64];
char tempGroupName[64];
+ char tempgname[64];
char *argv[1];
int i;
long rc;
ptr1 = strrchr(temp, '/');
if (ptr1 != NULL)
+ {
+ *ptr1 = '\0';
ptr = ++ptr1;
+ ptr1 = strrchr(temp, '/');
+ if (ptr1 != NULL)
+ {
+ sprintf(tempgname, "%s-%s", ++ptr1, ptr);
+ }
+ else
+ strcpy(tempgname, ptr);
+ }
else
- ptr = temp;
+ strcpy(tempgname, temp);
- if (strlen(ptr) > 25)
- ptr[25] ='\0';
+ if (strlen(tempgname) > 25)
+ tempgname[25] ='\0';
- sprintf(newGroupName, "cnt-%s", ptr);
+ sprintf(newGroupName, "cnt-%s", tempgname);
/* change everything to lower case */
ptr = newGroupName;
return(n);
}
+ if ((!strcasecmp(WinHomeDir, "[dfs]")) || (!strcasecmp(WinProfileDir, "[dfs]")))
+ {
+ sprintf(path, "\\\\%s\\dfs\\profiles\\%c\\%s", ldap_domain, user_name[0], user_name);
+ if (!strcasecmp(WinProfileDir, "[dfs]"))
+ {
+ strcpy(winProfile, path);
+ strcat(winProfile, "\\.winprofile");
+ }
+ if (!strcasecmp(WinHomeDir, "[dfs]"))
+ strcpy(winPath, path);
+ }
+
if (hp != NULL)
{
i = 0;
if (!strcasecmp(WinHomeDir, "[local]"))
memset(winPath, '\0', sizeof(winPath));
- else if (!strcasecmp(WinHomeDir, "[afs]"))
+ else if (!strcasecmp(WinHomeDir, "[afs]") || !strcasecmp(WinHomeDir, "[dfs]"))
{
strcpy(homeDrive, "H:");
}
// nothing needs to be done if WinProfileDir is [afs].
if (!strcasecmp(WinProfileDir, "[local]"))
memset(winProfile, '\0', sizeof(winProfile));
- else if (strcasecmp(WinProfileDir, "[afs]"))
+ else if (strcasecmp(WinProfileDir, "[afs]") && strcasecmp(WinProfileDir, "[dfs]"))
{
strcpy(winProfile, WinProfileDir);
}