diff options
Diffstat (limited to 'coreutils/uuencode.c')
-rw-r--r-- | coreutils/uuencode.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index fee408605..1449d9aeb 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c | |||
@@ -7,12 +7,7 @@ | |||
7 | * | 7 | * |
8 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 8 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
9 | */ | 9 | */ |
10 | #include <stdio.h> | 10 | |
11 | #include <string.h> | ||
12 | #include <stdlib.h> | ||
13 | #include <sys/types.h> | ||
14 | #include <sys/stat.h> | ||
15 | #include <unistd.h> | ||
16 | #include "busybox.h" | 11 | #include "busybox.h" |
17 | 12 | ||
18 | /* Conversion table. for base 64 */ | 13 | /* Conversion table. for base 64 */ |
@@ -92,7 +87,7 @@ int uuencode_main(int argc, char **argv) | |||
92 | 87 | ||
93 | switch (argc - optind) { | 88 | switch (argc - optind) { |
94 | case 2: | 89 | case 2: |
95 | src_stream = bb_xfopen(argv[optind], "r"); | 90 | src_stream = xfopen(argv[optind], "r"); |
96 | xstat(argv[optind], &stat_buf); | 91 | xstat(argv[optind], &stat_buf); |
97 | mode = stat_buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO); | 92 | mode = stat_buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO); |
98 | if (src_stream == stdout) { | 93 | if (src_stream == stdout) { |
@@ -128,7 +123,7 @@ int uuencode_main(int argc, char **argv) | |||
128 | } | 123 | } |
129 | bb_printf(tbl == tbl_std ? "\n`\nend\n" : "\n====\n"); | 124 | bb_printf(tbl == tbl_std ? "\n`\nend\n" : "\n====\n"); |
130 | 125 | ||
131 | bb_xferror(src_stream, "source"); /* TODO - Fix this! */ | 126 | xferror(src_stream, "source"); /* TODO - Fix this! */ |
132 | 127 | ||
133 | bb_fflush_stdout_and_exit(EXIT_SUCCESS); | 128 | bb_fflush_stdout_and_exit(EXIT_SUCCESS); |
134 | } | 129 | } |