aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uuencode.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-06-04 23:32:35 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-06-04 23:32:35 +0000
commit746204b1b8ee1948ca91637eeb34043e5e4f0aad (patch)
tree030dde44d64e3420a1980674c1c8815807c45ca4 /coreutils/uuencode.c
parent8c1aaf32978da33a462997b269536f1de47c79c6 (diff)
downloadbusybox-w32-746204b1b8ee1948ca91637eeb34043e5e4f0aad.tar.gz
busybox-w32-746204b1b8ee1948ca91637eeb34043e5e4f0aad.tar.bz2
busybox-w32-746204b1b8ee1948ca91637eeb34043e5e4f0aad.zip
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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c
index 9490474b9..b54e317a2 100644
--- a/coreutils/uuencode.c
+++ b/coreutils/uuencode.c
@@ -28,7 +28,7 @@ int uuencode_main(int argc, char **argv)
28 RESERVE_CONFIG_BUFFER(dst_buf, DST_BUF_SIZE + 1); 28 RESERVE_CONFIG_BUFFER(dst_buf, DST_BUF_SIZE + 1);
29 29
30 tbl = bb_uuenc_tbl_std; 30 tbl = bb_uuenc_tbl_std;
31 if (getopt32(argc, argv, "m") & 1) { 31 if (getopt32(argc, argv, "m")) {
32 tbl = bb_uuenc_tbl_base64; 32 tbl = bb_uuenc_tbl_base64;
33 } 33 }
34 34
@@ -37,9 +37,6 @@ int uuencode_main(int argc, char **argv)
37 src_stream = xfopen(argv[optind], "r"); 37 src_stream = xfopen(argv[optind], "r");
38 xstat(argv[optind], &stat_buf); 38 xstat(argv[optind], &stat_buf);
39 mode = stat_buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO); 39 mode = stat_buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO);
40 if (src_stream == stdout) {
41 puts("NULL");
42 }
43 break; 40 break;
44 case 1: 41 case 1:
45 mode = 0666 & ~umask(0666); 42 mode = 0666 & ~umask(0666);