aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2011-09-27 13:29:53 -0400
committerAnthony G. Basile <blueness@gentoo.org>2011-09-27 14:00:12 -0400
commit26a53560ddd64f3a9494f9fa33929972edfff79d (patch)
tree17a6bf666566587fe6a657f812758f25df7e04bf
parentPrepare build system (diff)
downloadelfix-26a53560ddd64f3a9494f9fa33929972edfff79d.tar.gz
elfix-26a53560ddd64f3a9494f9fa33929972edfff79d.tar.bz2
elfix-26a53560ddd64f3a9494f9fa33929972edfff79d.zip
src/paxctl-ng.c: remove redundand call to gelf_getehdr
-rw-r--r--src/paxctl-ng.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/paxctl-ng.c b/src/paxctl-ng.c
index fd04dec..fea0832 100644
--- a/src/paxctl-ng.c
+++ b/src/paxctl-ng.c
@@ -297,9 +297,6 @@ set_flags(Elf *elf, int *pax_flags)
ei_flags |= HF_PAX_RANDEXEC;
- if(gelf_getehdr(elf, &ehdr) != &ehdr)
- error(EXIT_FAILURE, 0, "gelf_getehdr(): %s", elf_errmsg(elf_errno()));
-
ehdr.e_ident[EI_PAX] = (uint8_t)ei_flags ;
ehdr.e_ident[EI_PAX + 1] = (uint8_t)(ei_flags >> 8) ;