diff options
author | Denis Vlasenko | 2007-06-04 23:32:35 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-06-04 23:32:35 +0000 |
commit | 746204b1b8ee1948ca91637eeb34043e5e4f0aad (patch) | |
tree | 030dde44d64e3420a1980674c1c8815807c45ca4 /coreutils/uuencode.c | |
parent | 8c1aaf32978da33a462997b269536f1de47c79c6 (diff) | |
download | busybox-746204b1b8ee1948ca91637eeb34043e5e4f0aad.zip busybox-746204b1b8ee1948ca91637eeb34043e5e4f0aad.tar.gz |
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
Diffstat (limited to 'coreutils/uuencode.c')
-rw-r--r-- | coreutils/uuencode.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index 9490474..b54e317 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c @@ -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); |