Skip directories when loading debug symbols.

oldstable
Dmitry Timoshkov 2000-11-15 23:04:41 +00:00 committed by Alexandre Julliard
parent e939206f90
commit af1df43df8
1 changed files with 2 additions and 1 deletions

View File

@ -1214,7 +1214,8 @@ enum DbgInfoLoad DEBUG_LoadElfStabs(DBG_MODULE* module)
/* check that the file exists, and that the module hasn't been loaded yet */
if (stat(module->module_name, &statbuf) == -1) goto leave;
if (S_ISDIR(statbuf.st_mode)) goto leave;
/*
* Now open the file, so that we can mmap() it.
*/