uudecode: fix to base64 decode by Jorgen Cederlof <jcz@google.com>

improved help texts

# make bloatcheck
function                                             old     new   delta
.rodata                                           127000  127032     +32
packed_usage                                       22156   22151      -5
uudecode_main                                        360     348     -12
uuencode_main                                        490     468     -22
read_base64                                          283     254     -29
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/4 up/down: 32/-68)            Total: -36 bytes
This commit is contained in:
Denis Vlasenko
2007-06-04 23:32:35 +00:00
parent 8c1aaf3297
commit 746204b1b8
3 changed files with 56 additions and 28 deletions

View File

@@ -28,7 +28,7 @@ int uuencode_main(int argc, char **argv)
RESERVE_CONFIG_BUFFER(dst_buf, DST_BUF_SIZE + 1);
tbl = bb_uuenc_tbl_std;
if (getopt32(argc, argv, "m") & 1) {
if (getopt32(argc, argv, "m")) {
tbl = bb_uuenc_tbl_base64;
}
@@ -37,9 +37,6 @@ int uuencode_main(int argc, char **argv)
src_stream = xfopen(argv[optind], "r");
xstat(argv[optind], &stat_buf);
mode = stat_buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);
if (src_stream == stdout) {
puts("NULL");
}
break;
case 1:
mode = 0666 & ~umask(0666);