diff options
| author | Ron Yorston <rmy@pobox.com> | 2026-01-06 15:03:27 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2026-01-06 15:03:27 +0000 |
| commit | 90c68f18dc24fb3919811199f849fa2dc7a75294 (patch) | |
| tree | a2156f1e9185ea206e3fe7b880f7cd3c9f02c4fb | |
| parent | 80429823757163f4855eb90d0004ad6eae55bd3f (diff) | |
| download | busybox-w32-master.tar.gz busybox-w32-master.tar.bz2 busybox-w32-master.zip | |
Until the previous commit has been accepted upstream it should
only be enabled in builds for Microsoft Windows.
Diffstat (limited to '')
| -rw-r--r-- | coreutils/md5_sha1_sum.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c index 3073ecddf..669bd1309 100644 --- a/coreutils/md5_sha1_sum.c +++ b/coreutils/md5_sha1_sum.c | |||
| @@ -278,7 +278,7 @@ int md5_sha1_sum_main(int argc UNUSED_PARAM, char **argv) | |||
| 278 | { | 278 | { |
| 279 | unsigned char *in_buf; | 279 | unsigned char *in_buf; |
| 280 | int return_value = EXIT_SUCCESS; | 280 | int return_value = EXIT_SUCCESS; |
| 281 | unsigned flags = 0; | 281 | unsigned flags IF_PLATFORM_MINGW32(= 0); |
| 282 | #if ENABLE_SHA3SUM | 282 | #if ENABLE_SHA3SUM |
| 283 | unsigned sha3_width = 224; | 283 | unsigned sha3_width = 224; |
| 284 | #endif | 284 | #endif |
| @@ -378,7 +378,11 @@ int md5_sha1_sum_main(int argc UNUSED_PARAM, char **argv) | |||
| 378 | if (hash_value == NULL) { | 378 | if (hash_value == NULL) { |
| 379 | return_value = EXIT_FAILURE; | 379 | return_value = EXIT_FAILURE; |
| 380 | } else { | 380 | } else { |
| 381 | #if ENABLE_PLATFORM_MINGW32 | ||
| 381 | printf("%s %c%s\n", hash_value, flags & FLAG_BINARY ? '*' : ' ', *argv); | 382 | printf("%s %c%s\n", hash_value, flags & FLAG_BINARY ? '*' : ' ', *argv); |
| 383 | #else | ||
| 384 | printf("%s %s\n", hash_value, *argv); | ||
| 385 | #endif | ||
| 382 | free(hash_value); | 386 | free(hash_value); |
| 383 | } | 387 | } |
| 384 | } | 388 | } |
