mirror of
git://git.sv.gnu.org/coreutils
synced 2026-05-27 11:01:10 -04:00
(digest_check): On systems for which setmode actually
does something, arrange to read the file containing checksum strings in text mode. Based on a patch from Chris Faylor.
This commit is contained in:
+2
-1
@@ -1,5 +1,5 @@
|
||||
/* Compute MD5 or SHA1 checksum of files or strings
|
||||
Copyright (C) 1995-2000 Free Software Foundation, Inc.
|
||||
Copyright (C) 1995-2001 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -339,6 +339,7 @@ digest_check (const char *checkfile_name, int (*digest_stream)(FILE *, void *))
|
||||
}
|
||||
}
|
||||
|
||||
SET_MODE (fileno (checkfile_stream), O_TEXT);
|
||||
line_number = 0;
|
||||
line = NULL;
|
||||
line_chars_allocated = 0;
|
||||
|
||||
Reference in New Issue
Block a user