OSX: Fix an error in own 61065

This commit is contained in:
Jens Verwiebe 2013-11-03 13:10:18 +00:00
parent e5572a3f55
commit bb9cbedf72

@ -865,11 +865,12 @@ static void filelist_setfiletypes(struct FileList *filelist)
for (num = 0; num < filelist->numfiles; num++, file++) {
file->type = file->s.st_mode; /* restore the mess below */
/* Don't check extensions for directories, allow in OSX application bundles */
if ((file->type & S_IFDIR) && (!APPLICATIONBUNDLE)) {
#ifndef __APPLE__
/* Don't check extensions for directories, allow in OSX cause bundles have extensions*/
if (file->type & S_IFDIR) {
continue;
}
#endif
file->flags = file_extension_type(filelist->dir, file->relname);
if (filelist->filter_glob[0] &&