diff options
Diffstat (limited to 'coreutils/uuencode.c')
| -rw-r--r-- | coreutils/uuencode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index e19f99676..bf661851d 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c | |||
| @@ -16,7 +16,7 @@ enum { | |||
| 16 | }; | 16 | }; |
| 17 | 17 | ||
| 18 | int uuencode_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 18 | int uuencode_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
| 19 | int uuencode_main(int argc, char **argv) | 19 | int uuencode_main(int argc UNUSED_PARAM, char **argv) |
| 20 | { | 20 | { |
| 21 | struct stat stat_buf; | 21 | struct stat stat_buf; |
| 22 | int src_fd = STDIN_FILENO; | 22 | int src_fd = STDIN_FILENO; |
| @@ -32,7 +32,7 @@ int uuencode_main(int argc, char **argv) | |||
| 32 | tbl = bb_uuenc_tbl_base64; | 32 | tbl = bb_uuenc_tbl_base64; |
| 33 | } | 33 | } |
| 34 | argv += optind; | 34 | argv += optind; |
| 35 | if (argc == optind + 2) { | 35 | if (argv[1]) { |
| 36 | src_fd = xopen(*argv, O_RDONLY); | 36 | src_fd = xopen(*argv, O_RDONLY); |
| 37 | fstat(src_fd, &stat_buf); | 37 | fstat(src_fd, &stat_buf); |
| 38 | mode = stat_buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO); | 38 | mode = stat_buf.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO); |
