diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-13 23:58:17 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-13 23:58:17 +0200 |
| commit | 643b308029ac42f466fa17e4ff400e47003205d9 (patch) | |
| tree | 7b534a921d84dbad6fdf124edbf3994bad32f02f | |
| parent | 6f7b10cdabfe2b99d7839087f007ccf7a9083847 (diff) | |
| download | busybox-w32-643b308029ac42f466fa17e4ff400e47003205d9.tar.gz busybox-w32-643b308029ac42f466fa17e4ff400e47003205d9.tar.bz2 busybox-w32-643b308029ac42f466fa17e4ff400e47003205d9.zip | |
base32/64: accept -i "skip bad chars" option (currently in effect unconditionally)
function old new delta
.rodata 103189 103190 +1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | coreutils/uudecode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index bd7766ef7..a607977e9 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c | |||
| @@ -194,7 +194,9 @@ int uudecode_main(int argc UNUSED_PARAM, char **argv) | |||
| 194 | //usage: "Base64 encode or decode FILE to standard output\n" | 194 | //usage: "Base64 encode or decode FILE to standard output\n" |
| 195 | //usage: "\n -d Decode data" | 195 | //usage: "\n -d Decode data" |
| 196 | //usage: "\n -w COL Wrap lines at COL (default 76, 0 disables)" | 196 | //usage: "\n -w COL Wrap lines at COL (default 76, 0 disables)" |
| 197 | ////usage: "\n -i When decoding, ignore non-alphabet characters" | 197 | ///////: "\n -i When decoding, ignore non-alphabet characters" |
| 198 | // -i is accepted but has no effect: currently, decode_base32/64() functions | ||
| 199 | // (called via read_base64()) skip invalid chars unconditionally. | ||
| 198 | 200 | ||
| 199 | // APPLET_ODDNAME:name main location suid_type help | 201 | // APPLET_ODDNAME:name main location suid_type help |
| 200 | //applet:IF_BASE32(APPLET_ODDNAME(base32, baseNUM, BB_DIR_BIN, BB_SUID_DROP, base32)) | 202 | //applet:IF_BASE32(APPLET_ODDNAME(base32, baseNUM, BB_DIR_BIN, BB_SUID_DROP, base32)) |
| @@ -272,7 +274,7 @@ int baseNUM_main(int argc UNUSED_PARAM, char **argv) | |||
| 272 | unsigned opts; | 274 | unsigned opts; |
| 273 | unsigned col = 76; | 275 | unsigned col = 76; |
| 274 | 276 | ||
| 275 | opts = getopt32(argv, "^" "dw:+" "\0" "?1"/* 1 arg max*/, &col); | 277 | opts = getopt32(argv, "^" "diw:+" "\0" "?1"/* 1 arg max*/, &col); |
| 276 | argv += optind; | 278 | argv += optind; |
| 277 | 279 | ||
| 278 | if (!argv[0]) | 280 | if (!argv[0]) |
