projects
/
file
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bee31e7
)
print empty if we could not read the interpreter.
author
Christos Zoulas
<christos@zoulas.com>
Thu, 11 Dec 2014 14:10:53 +0000
(14:10 +0000)
committer
Christos Zoulas
<christos@zoulas.com>
Thu, 11 Dec 2014 14:10:53 +0000
(14:10 +0000)
src/readelf.c
patch
|
blob
|
history
diff --git
a/src/readelf.c
b/src/readelf.c
index 932e6eb2a22b969530ca3b689fdfe92dc3c4ad50..78ed2a7965e65c8f5362ba44c7630f9c1e2593ad 100644
(file)
--- a/
src/readelf.c
+++ b/
src/readelf.c
@@
-27,7
+27,7
@@
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: readelf.c,v 1.11
2 2014/12/11 12:34:24
christos Exp $")
+FILE_RCSID("@(#)$File: readelf.c,v 1.11
3 2014/12/11 14:10:53
christos Exp $")
#endif
#ifdef BUILTIN_ELF
@@
-1227,7
+1227,8
@@
dophn_exec(struct magic_set *ms, int clazz, int swap, int fd, off_t off,
if (bufsize) {
nbuf[bufsize - 1] = '\0';
interp = (const char *)nbuf;
- }
+ } else
+ interp = "*empty*";
break;
case PT_NOTE:
/*