if (strcmp(disk_path, "/") == 0)
path_on_disk = stralloc2("/", regex_path);
else {
if (strcmp(disk_path, "/") == 0)
path_on_disk = stralloc2("/", regex_path);
else {
path_on_disk = vstralloc(clean_disk_path, "/", regex_path, NULL);
amfree(clean_disk_path);
}
path_on_disk = vstralloc(clean_disk_path, "/", regex_path, NULL);
amfree(clean_disk_path);
}
if (strcmp(disk_path, "/") == 0)
path_on_disk = stralloc2("/", regex);
else {
if (strcmp(disk_path, "/") == 0)
path_on_disk = stralloc2("/", regex);
else {
path_on_disk = vstralloc(clean_disk_path, "/", regex, NULL);
amfree(clean_disk_path);
}
path_on_disk = vstralloc(clean_disk_path, "/", regex, NULL);
amfree(clean_disk_path);
}