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