- /* Guarantee that dest->root_dir ends with a '/' */
- if (root_dir[strlen(root_dir) -1] == '/') {
- dest->root_dir = xstrdup(root_dir);
- } else {
- sprintf_alloc(&dest->root_dir, "%s/", root_dir);
- }
- file_mkdir_hier(dest->root_dir, 0755);
+ /* Guarantee that dest->root_dir ends with a '/' */
+ if (root_dir[strlen(root_dir) - 1] == '/') {
+ dest->root_dir = xstrdup(root_dir);
+ } else {
+ sprintf_alloc(&dest->root_dir, "%s/", root_dir);
+ }
+ file_mkdir_hier(dest->root_dir, 0755);