-2008-03-27 16:16 Robert Byrnes <byrnes@wildpumpkin.net>
+2008-04-04 11:00 Christos Zoulas <christos@astron.com>
- * src/readelf.c (donote):
- ELF core file command name/line bug fixes and enhancements:
-
- Try larger offsets first to avoid false matches
- from earlier data that happen to look like strings;
- this primarily affected SunOS 5.x 32-bit Intel core files.
-
- Add support for command line (instead of just short name)
- for SunOS 5.x.
-
- Add information about NT_PSINFO for SunOS 5.x.
-
- Only trim whitespace from end of command line.
+ * >= <= is not supported, so fix the magic and warn about it.
+ reported by: Thien-Thi Nguyen <ttn@gnuvola.org>
2007-02-11 01:36 Reuben Thomas <rrt@sc3d.org>
#include <dirent.h>
#ifndef lint
-FILE_RCSID("@(#)$File: apprentice.c,v 1.131 2008/03/01 22:21:48 rrt Exp $")
+FILE_RCSID("@(#)$File: apprentice.c,v 1.132 2008/03/28 18:19:30 christos Exp $")
#endif /* lint */
#define EATAB {while (isascii((unsigned char) *l) && \
switch (*l) {
case '>':
case '<':
+ m->reln = *l;
+ ++l;
+ if (*l == '=') {
+ if (ms->flags & MAGIC_CHECK) {
+ file_magwarn(ms, "%c= not supported",
+ m->reln);
+ return -1;
+ }
+ ++l;
+ }
+ break;
/* Old-style anding: "0 byte &0x80 dynamically linked" */
case '&':
case '^':