summaryrefslogtreecommitdiff
path: root/src/md5sum.c
AgeCommit message (Collapse)Author
1996-10-04(main): update --version output to conform to coding standardJim Meyering
1996-09-27(usage): Remove references in --help output toJim Meyering
the now-deprecated --string option. Support for it will be removed soon.
1996-09-02(usage): Tell where to report bugs.Jim Meyering
1996-07-26(md5_check): Remove parameter, BINARY.Jim Meyering
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>.
1996-07-04(split_3): Add missing semicolon. From Jim Blandy.Jim Meyering
1996-07-04(md5_file): Replace obsolete comment with a descriptionJim Meyering
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.
1996-07-04(MIN_DIGEST_LINE_LENGTH): New macro.Jim Meyering
[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.
1996-07-04(split_3): Correct test for 35-byte line to accomodateJim Meyering
fact that leading blanks may be stripped.
1996-07-02[NEWLINE_REPLACEMENT_STRING]: Define.Jim Meyering
(split_3): Translate NL bytes not to NUL, but to NEWLINE_REPLACEMENT_STRING. Suggested by Ulrich Drepper. (main): Translate back to NL-containing filename.
1996-07-01(main): Remove now-unnecessary diagnostic about filename containing NEWLINE.Jim Meyering
1996-07-01(split_3): Take an additional parameter, S_LEN.Jim Meyering
Adapt caller. Map translated NEWLINE-containing filename back into the original NEWLINE-containing name. (md5_check): Translate NEWLINE bytes to NUL bytes in filename.
1996-05-15(md5_t_stats): Restructure pluralization of error message so it's easierJim Meyering
to translate.
1996-04-24update Copyright years for 1996Jim Meyering
1996-04-22(md5_check): Remove spurious `\n' at end of error format string.Jim Meyering
1996-03-24Exit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.Jim Meyering
This doesn't change `error (1' calls.
1996-03-16Don't include version.h.Jim Meyering
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-09(main): Initialize for internationalized message support: call setlocale,Jim Meyering
bindtextdomain, and textdomain.
1996-02-17Mark a few error strings for translation.Jim Meyering
From Franc,ois Pinard.
1995-11-16Remove obsolete FIXME.Jim Meyering
1995-11-06(usage): Remove last sentence. It is redundant.Jim Meyering
1995-10-28(md5_check): Use the same message format when the single file has aJim Meyering
read error or checksum mismatch as when there are more. Write diagnostic to stderr, not stdout.
1995-10-12Remove bogus FIXME.Jim Meyering
1995-10-03(main): Declare counter, N_STRINGS, to be an integral type, not `char'.Jim Meyering
1995-09-23(md5_check): Distinguish between open/read failure and checksum mismatch.Jim Meyering
1995-09-20(main): Reverse order of `check' and `compute sums' blocks in if-elseJim Meyering
chain to make it a little more readable.
1995-09-18Protoize.Jim Meyering
1995-09-18(main, usage): Remove -h, -s, -v short options.Jim Meyering
Rename --verbose to --warn, --quiet to --status. (main): Handle --help and --version using parse_long_options. (md5_check): Check ferror.
1995-08-10(main) [handling --string option]: Don't output nonstandard `b' binary flag.Jim Meyering
1995-08-09(main): Fail if either --verbose or --quiet is specifiedJim Meyering
when not verifying checksums.
1995-08-09(md5_check): Fail if no valid line is found.Jim Meyering
Don't use the word `fail' unless there were failures -- say `all N tests passed.'
1995-08-07Annotate localizable strings with _(...). From Franc,ois.Jim Meyering
1995-08-05(__P): No longer define this. It's not used.Jim Meyering
1995-07-30(md5_check): Use getline instead of fgets.Jim Meyering
1995-07-30Add parens to clarify ?: expression.Jim Meyering
1995-07-27(have_read_stdin): New global variable.Jim Meyering
(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.
1995-07-25[_LIBC || STDC_HEADERS] (TOLOWER): Define to tolower.Jim Meyering
1995-07-22(md5_check): New function -- extracted from main.Jim Meyering
1995-07-21(md5_file): New function -- extracted from main.Jim Meyering
(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.
1995-07-21Use EXIT_FAILURE and EXIT_SUCCESS.Jim Meyering
(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.
1995-07-20(split_3): Accept only old format.Jim Meyering
Properly handle file names with leading and trailing white space.
1995-07-20more comment tweaksJim Meyering
1995-07-20Correct typo in Copyright.Jim Meyering
Reformat paragraph so line with new FSF address fits in 80 columns.
1995-07-20(usage): Move it to precede all other functions.Jim Meyering
Fiddle comments.
1995-07-20New version from Drepper.Jim Meyering
1995-07-16Add #else block after #ifdef VMS.Jim Meyering
(main): Rename local variable. Add FIXME: allow newlines in filenames. Detect and report failed fclose calls on stdout and checkfile_stream.
1995-07-03(split_3): Rewrite to parse Plumb/Lankester format as well.Jim Meyering
(main): Write (de facto) standard Plumb/Lankester format. New option: --quiet. Check option no longer takes an argument. When checking, exit status reflects success.
1995-06-24Don't conditionalize use of "inline". Autoconf takes care of definingJim Meyering
it away for compilers that don't grok it.
1995-06-24[uint32]: When testing for 32-bit arithmetic type,Jim Meyering
also check `unsigned long', as a concession to systems with int's smaller than 32 bits.
1995-06-22(main): Remove spurious colon in getopt spec string.Jim Meyering
From Ken Pizzini <kenp@spry.com>.
1995-06-20(md5_file): Initialize two elements of LEN portably,Jim Meyering
rather than with ANSI aggregate initialization. Reported by Edzer Pebesma <Edzer.Pebesma@rivm.nl>.