aboutsummaryrefslogtreecommitdiff
path: root/md5sum.c
diff options
context:
space:
mode:
Diffstat (limited to 'md5sum.c')
-rw-r--r--md5sum.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/md5sum.c b/md5sum.c
index 57fac7450..ecc1458a2 100644
--- a/md5sum.c
+++ b/md5sum.c
@@ -651,13 +651,13 @@ static int md5_file(const char *filename,
651 } else { 651 } else {
652 fp = fopen(filename, OPENOPTS(binary)); 652 fp = fopen(filename, OPENOPTS(binary));
653 if (fp == NULL) { 653 if (fp == NULL) {
654 error_msg("%s: %s\n", filename, strerror(errno)); 654 perror_msg("%s", filename);
655 return FALSE; 655 return FALSE;
656 } 656 }
657 } 657 }
658 658
659 if (md5_stream(fp, md5_result)) { 659 if (md5_stream(fp, md5_result)) {
660 error_msg("%s: %s\n", filename, strerror(errno)); 660 perror_msg("%s", filename);
661 661
662 if (fp != stdin) 662 if (fp != stdin)
663 fclose(fp); 663 fclose(fp);
@@ -665,7 +665,7 @@ static int md5_file(const char *filename,
665 } 665 }
666 666
667 if (fp != stdin && fclose(fp) == EOF) { 667 if (fp != stdin && fclose(fp) == EOF) {
668 error_msg("%s: %s\n", filename, strerror(errno)); 668 perror_msg("%s", filename);
669 return FALSE; 669 return FALSE;
670 } 670 }
671 671
@@ -689,7 +689,7 @@ static int md5_check(const char *checkfile_name)
689 } else { 689 } else {
690 checkfile_stream = fopen(checkfile_name, "r"); 690 checkfile_stream = fopen(checkfile_name, "r");
691 if (checkfile_stream == NULL) { 691 if (checkfile_stream == NULL) {
692 error_msg("%s: %s\n", checkfile_name, strerror(errno)); 692 perror_msg("%s", checkfile_name);
693 return FALSE; 693 return FALSE;
694 } 694 }
695 } 695 }
@@ -775,7 +775,7 @@ static int md5_check(const char *checkfile_name)
775 } 775 }
776 776
777 if (checkfile_stream != stdin && fclose(checkfile_stream) == EOF) { 777 if (checkfile_stream != stdin && fclose(checkfile_stream) == EOF) {
778 error_msg("md5sum: %s: %s\n", checkfile_name, strerror(errno)); 778 perror_msg("md5sum: %s", checkfile_name);
779 return FALSE; 779 return FALSE;
780 } 780 }
781 781