Lines Matching refs:root_path
523 char *root_path = NULL;
525 root_path = my_malloc(512);
527 if(root_path==NULL)
534 sprintf(root_path, "%s", path);
538 snprintf(root_path, strlen(path) - strlen(temp) + 1, "%s", path);
543 if(!strcmp(root_path, smb_config.multrule[i]->client_root_path))
546 //printf("get_path_to_index root_path = %s\t%d\n", root_path, i);
548 free(root_path);
558 char *root_path = NULL;
563 root_path = my_malloc(128);
565 if(root_path==NULL)
567 sprintf(root_path, "%s", temp);
574 root_path = my_malloc(128);
576 if(root_path==NULL)
582 sprintf(root_path, "%s", path);
586 snprintf(root_path, strlen(path) - strlen(temp) + 1, "%s", path);
589 return root_path;