X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=coreutils%2Fuudecode.c;h=5ef05ee4d6beb641ab3bcc6a9797864603603ff1;hb=00bd76728d44901a260f2dcdbeed52b3c85d6b6b;hp=418d0238ff6572bc131a26387be589a1580eec5f;hpb=4eed2c6c5092ed95b8ee6d994106c54a9fc6ed3e;p=oweals%2Fbusybox.git diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index 418d0238f..5ef05ee4d 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c @@ -14,7 +14,7 @@ //config: bool "uudecode (5.9 kb)" //config: default y //config: help -//config: uudecode is used to decode a uuencoded file. +//config: uudecode is used to decode a uuencoded file. //applet:IF_UUDECODE(APPLET(uudecode, BB_DIR_USR_BIN, BB_SUID_DROP)) @@ -120,8 +120,7 @@ int uudecode_main(int argc UNUSED_PARAM, char **argv) char *outname = NULL; char *line; - opt_complementary = "?1"; /* 1 argument max */ - getopt32(argv, "o:", &outname); + getopt32(argv, "^" "o:" "\0" "?1"/* 1 arg max*/, &outname); argv += optind; if (!argv[0]) @@ -179,7 +178,7 @@ int uudecode_main(int argc UNUSED_PARAM, char **argv) //config: bool "base64 (5 kb)" //config: default y //config: help -//config: Base64 encode and decode +//config: Base64 encode and decode //usage:#define base64_trivial_usage //usage: "[-d] [FILE]" @@ -196,8 +195,7 @@ int base64_main(int argc UNUSED_PARAM, char **argv) FILE *src_stream; unsigned opts; - opt_complementary = "?1"; /* 1 argument max */ - opts = getopt32(argv, "d"); + opts = getopt32(argv, "^" "d" "\0" "?1"/* 1 arg max*/); argv += optind; if (!argv[0])