Age | Commit message (Collapse) | Author |
|
|
|
the now-deprecated --string option. Support for it will be
removed soon.
|
|
|
|
Rename local TYPE_FLAG to BINARY, so md5_file uses the binary mode
from the input stream rather than the one from the command line.
(main): Fail with a diagnostic if --binary or --text is specified
when verifying checksums.
Reported by Eli Zaretskii <eliz@is.elta.co.il>.
|
|
|
|
of the function.
(md5_check): Don't use "s"-adding trick to form the plural of
`checksum.' That doesn't work well with translation.
Suggestions from Ulrich Drepper.
|
|
[NEWLINE_REPLACEMENT_STRING*]: Remove macros.
(main): Output a leading backslash for a line describing a file
whose name contains a newline. Then translate each NEWLINE byte
in the file name to the string, "\\n", and each backslash to "\\\\".
File names that don't contain NEWLINE aren't translated.
(split_3): Rewrite to handle file names with embedded newlines.
Miles Bader and Jim Blandy suggested this new encoding scheme.
|
|
fact that leading blanks may be stripped.
|
|
(split_3): Translate NL bytes not to NUL, but to
NEWLINE_REPLACEMENT_STRING.
Suggested by Ulrich Drepper.
(main): Translate back to NL-containing filename.
|
|
|
|
Adapt caller.
Map translated NEWLINE-containing filename back into the original
NEWLINE-containing name.
(md5_check): Translate NEWLINE bytes to NUL bytes in filename.
|
|
to translate.
|
|
|
|
|
|
This doesn't change `error (1' calls.
|
|
(main): Use PACKAGE_VERSION instead of version_string.
|
|
bindtextdomain, and textdomain.
|
|
From Franc,ois Pinard.
|
|
|
|
|
|
read error or checksum mismatch as when there are more.
Write diagnostic to stderr, not stdout.
|
|
|
|
|
|
|
|
chain to make it a little more readable.
|
|
|
|
Rename --verbose to --warn, --quiet to --status.
(main): Handle --help and --version using parse_long_options.
(md5_check): Check ferror.
|
|
|
|
when not verifying checksums.
|
|
Don't use the word `fail' unless there were failures --
say `all N tests passed.'
|
|
|
|
|
|
|
|
|
|
(md5_file, md5_check): Set it.
(main): Use it.
[OPENOPTS]: Depend explicitly on BINARY.
(md5_file): Take a new parameter, MD5_RESULT, and no longer
generate output.
(md5_check): Invoke md5_file instead of calling fopen directly.
When giving a diagnostic for a line with invalid format, also report
the line number.
(main): Generate output after a successful md5_file call.
[in many places]: Upon detection of an error, rather than exiting
immediately, issue a diagnostic, note that an error occurred and
exit later.
|
|
|
|
|
|
(main): Call the new function instead of doing all that in an if stmt.
Always use "%s" format rather than raw filename as format argument
in printf-style functions like error. Otherwise, filenames containing
e.g. `%s' lose.
Remove all traces of `old format'. There is only one format now.
The compatible one.
|
|
(main): Report an error if md5_stream fails. Otherwise, running
`md5sum dir-on-mounted-filesystem' always reported the checksum
for an empty file. Now it gets the `is a directory' error.
Greg McGary reported that the released version got stuck in an
infinite loop with such arguments.
|
|
Properly handle file names with leading and trailing white space.
|
|
|
|
Reformat paragraph so line with new FSF address fits in 80 columns.
|
|
Fiddle comments.
|
|
|
|
(main): Rename local variable.
Add FIXME: allow newlines in filenames.
Detect and report failed fclose calls on stdout and checkfile_stream.
|
|
(main): Write (de facto) standard Plumb/Lankester format.
New option: --quiet.
Check option no longer takes an argument.
When checking, exit status reflects success.
|
|
it away for compilers that don't grok it.
|
|
also check `unsigned long', as a concession to systems with
int's smaller than 32 bits.
|
|
From Ken Pizzini <kenp@spry.com>.
|
|
rather than with ANSI aggregate initialization. Reported by
Edzer Pebesma <Edzer.Pebesma@rivm.nl>.
|