aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/md5sum.c12
-rw-r--r--coreutils/stty.c2
2 files changed, 5 insertions, 9 deletions
diff --git a/coreutils/md5sum.c b/coreutils/md5sum.c
index 72bc08624..bb4d115ca 100644
--- a/coreutils/md5sum.c
+++ b/coreutils/md5sum.c
@@ -770,12 +770,10 @@ static int md5_file(const char *filename,
770 have_read_stdin = 1; 770 have_read_stdin = 1;
771 fp = stdin; 771 fp = stdin;
772 } else { 772 } else {
773 fp = fopen(filename, "r"); 773 fp = wfopen(filename, "r");
774 if (fp == NULL) { 774 if (fp == NULL)
775 perror_msg("%s", filename);
776 return FALSE; 775 return FALSE;
777 } 776 }
778 }
779 777
780 if (md5_stream(fp, md5_result)) { 778 if (md5_stream(fp, md5_result)) {
781 perror_msg("%s", filename); 779 perror_msg("%s", filename);
@@ -807,12 +805,10 @@ static int md5_check(const char *checkfile_name)
807 have_read_stdin = 1; 805 have_read_stdin = 1;
808 checkfile_stream = stdin; 806 checkfile_stream = stdin;
809 } else { 807 } else {
810 checkfile_stream = fopen(checkfile_name, "r"); 808 checkfile_stream = wfopen(checkfile_name, "r");
811 if (checkfile_stream == NULL) { 809 if (checkfile_stream == NULL)
812 perror_msg("%s", checkfile_name);
813 return FALSE; 810 return FALSE;
814 } 811 }
815 }
816 812
817 line_number = 0; 813 line_number = 0;
818 814
diff --git a/coreutils/stty.c b/coreutils/stty.c
index 1e1343370..2e00a496d 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -24,7 +24,7 @@
24 24
25 David MacKenzie <djm@gnu.ai.mit.edu> 25 David MacKenzie <djm@gnu.ai.mit.edu>
26 26
27 Special for busybox ported by Vladimir Oleynik <vodz@usa.net> 2001 27 Special for busybox ported by Vladimir Oleynik <dzo@simtreas.ru> 2001
28 28
29 */ 29 */
30 30