← Commit list

263cff9a2

Denys Vlasenko
Denys Vlasenko
2009-08-20
FAILED Duration: 30s

Subject

do not store 1st two bytes of compressed help text

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

applets/usage_compressed+1 -1
@@ -24,7 +24,7 @@ echo 'static const char packed_usage[] ALIGN1 = {'
## | grep -v '^$' \
## | $SED -e 's/\(..\)\(..\)/0x\2,0x\1,/g'
-"$loc/usage" | bzip2 -1 | od -v -t x1 \
+"$loc/usage" | bzip2 -1 | dd bs=2 skip=1 | od -v -t x1 \
| $SED -e 's/^[^ ]*//' \
| $SED -e 's/ //g' \
| grep -v '^$' \
libbb/appletlib.c+1 -2
@@ -73,8 +73,7 @@ static const char *unpack_usage_messages(void)
i = start_bunzip(&bd,
/* src_fd: */ -1,
-//FIXME: can avoid storing these 2 bytes!
- /* inbuf: */ (void *)packed_usage + 2,
+ /* inbuf: */ (void *)packed_usage,
/* len: */ sizeof(packed_usage));
/* read_bunzip can longjmp to start_bunzip, and ultimately
* end up here with i != 0 on read data errors! Not trivial */