Menu

#72 flowoplib_makedir() broken - all mkdir calls fail on ENOENT

pending
nobody
None
bug
3
2015-06-11
2015-06-11
Anonymous
No

flowoplib_makedir() is broken completely. When it is called to create a directory, it is given a path which has non-existent components and all mkdir calls fail on ENOENT.

The fileset routine to create a directory tree works as it creates the components in the path leading up to the leaf. I quick hack fix was to replace FB_MKDIR() call in this routine with a call to fileset_mkdir() - after making that routine extern in the file containing it.

Real fix is likely to have files initialization create a tree with empty leaf dirs that are populated by the makedir function.

extern int fileset_mkdir(char *, int );

. . .

/ (void) FB_MKDIR(full_path, 0755); /
(void) fileset_mkdir(full_path, 0755);

Discussion

MongoDB Logo MongoDB