This is a patch file for "binutils" 2.14.X through 2.16.X. It was ex- tracted from a Debian patch set, which was obtained originally from: http://ftp.debian.org/debian/pool/main/b/binutils/\ binutils_2.15-6.diff.gz --- binutils-2.14.90.0.6.old/bfd/opncls.c +++ binutils-2.14.90.0.6/bfd/opncls.c @@ -150,6 +150,13 @@ { bfd *nbfd; const bfd_target *target_vec; + struct stat s; + + if (stat (filename, &s) == 0) + if (S_ISDIR(s.st_mode)) { + bfd_set_error (bfd_error_file_not_recognized); + return NULL; + } nbfd = _bfd_new_bfd (); if (nbfd == NULL)