Bug #6108
Updated by Sage Weil over 10 years ago
the buffer needs to be ~ sizeof(struct dirent) + PATH_MAX; it can't be a struct dirent or else the filename itself will clobber stuff on the stack.
Updated by Sage Weil over 10 years ago
the buffer needs to be ~ sizeof(struct dirent) + PATH_MAX; it can't be a struct dirent or else the filename itself will clobber stuff on the stack.