base64: new applet

function                                             old     new   delta
base64_main                                            -     217    +217
packed_usage                                       27181   27229     +48
read_base64                                          348     373     +25
applet_names                                        2299    2306      +7
bbconfig_config_bz2                                 4942    4948      +6
applet_main                                         1352    1356      +4
applet_nameofs                                       676     678      +2
applet_install_loc                                   169     170      +1
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 7/0 up/down: 310/0)             Total: 310 bytes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
Denys Vlasenko 2010-08-31 14:09:22 +02:00
parent 8d3e225a2d
commit ee06264a29
2 changed files with 76 additions and 6 deletions

View file

@ -11,7 +11,7 @@
#include "libbb.h"
enum {
SRC_BUF_SIZE = 45, /* This *MUST* be a multiple of 3 */
SRC_BUF_SIZE = 15*3, /* This *MUST* be a multiple of 3 */
DST_BUF_SIZE = 4 * ((SRC_BUF_SIZE + 2) / 3),
};
@ -33,7 +33,7 @@ int uuencode_main(int argc UNUSED_PARAM, char **argv)
}
argv += optind;
if (argv[1]) {
src_fd = xopen(*argv, O_RDONLY);
src_fd = xopen(argv[0], O_RDONLY);
fstat(src_fd, &stat_buf);
mode = stat_buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);
argv++;