aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uudecode.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/uudecode.c')
-rw-r--r--coreutils/uudecode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c
index 78ca0968d..825fdb562 100644
--- a/coreutils/uudecode.c
+++ b/coreutils/uudecode.c
@@ -294,16 +294,16 @@ int uudecode_main (int argc,
294 } 294 }
295 295
296 if (optind == argc) 296 if (optind == argc)
297 exit_status = decode ("stdin", outname) == 0 ? TRUE : FALSE; 297 exit_status = decode ("stdin", outname) == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
298 else { 298 else {
299 exit_status = TRUE; 299 exit_status = EXIT_SUCCESS;
300 do { 300 do {
301 if (freopen (argv[optind], "r", stdin) != NULL) { 301 if (freopen (argv[optind], "r", stdin) != NULL) {
302 if (decode (argv[optind], outname) != 0) 302 if (decode (argv[optind], outname) != 0)
303 exit_status = FALSE; 303 exit_status = FALSE;
304 } else { 304 } else {
305 errorMsg("%s: %s\n", argv[optind], strerror(errno)); 305 errorMsg("%s: %s\n", argv[optind], strerror(errno));
306 exit_status = FALSE; 306 exit_status = EXIT_FAILURE;
307 } 307 }
308 optind++; 308 optind++;
309 } 309 }