This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch] Fix the plugin search in some file systems
- From: Rafael Espindola <espindola at google dot com>
- To: binutils at sourceware dot org
- Cc: Nick Clifton <nickc at redhat dot com>, TÃrÃk Edwin <edwintorok at gmail dot com>
- Date: Fri, 5 Jun 2009 12:28:28 +0100
- Subject: [patch] Fix the plugin search in some file systems
Hi,
TÃrÃk reported that not all file systems support the d_type field in
"struct dirent". Reiserfs for example always returns DT_UNKNOWN.
The attached patch adds a stat if d_type is DT_UNKNOWN or DT_LNK. This
fixes the plugin search on file systems that don't support d_type and
also avoids getting confused with symbolic links to directories.
2009-06-05 Rafael Avila de Espindola <espindola@google.com>
* plugin.c (load_plugin): Don't skip entries with d_type == DT_UNKNOWN.
Call stat on DT_UNKNOWN and DT_LNK entries.
Cheers,
--
Rafael Avila de Espindola
Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047