From c29270a018e6f53c0eaaa96033b7034ebf1329a9 Mon Sep 17 00:00:00 2001 From: John Reiser Date: Thu, 29 Jun 2000 04:51:02 +0000 Subject: [PATCH] ERR_LAB when saving space committer: jreiser 962254262 +0000 --- src/stub/l_lx_sh.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stub/l_lx_sh.c b/src/stub/l_lx_sh.c index 9f82b27b..d1fa3d47 100644 --- a/src/stub/l_lx_sh.c +++ b/src/stub/l_lx_sh.c @@ -75,7 +75,7 @@ xread(struct Extent *x, char *buf, size_t count) // util **************************************************************************/ -#if 0 //{ save space +#if 1 //{ save space #define ERR_LAB error: exit(127); #define err_exit(a) goto error #else //}{ save debugging time @@ -260,6 +260,7 @@ getexec(char const *const fname, Elf32_Ehdr *const ehdr, Elf32_auxv_t *const av) int const fdi = open(fname, O_RDONLY, 0); if (0 > fdi) { err_exit(18); +ERR_LAB } if (MAX_ELF_HDR!=read(fdi, (void *)ehdr, MAX_ELF_HDR)) { err_exit(19); @@ -304,6 +305,7 @@ void *upx_main( if (xo.buf != do_mmap(xo.buf, 1+3+xo.size, PROT_READ | PROT_WRITE, MAP_FIXED | MAP_PRIVATE | MAP_ANONYMOUS, 0, 0)) { err_exit(20); +ERR_LAB } // Uncompress shell script