summaryrefslogtreecommitdiff
path: root/src/md5sum.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-10-27 16:27:04 +0000
committerJim Meyering <jim@meyering.net>2005-10-27 16:27:04 +0000
commit84131ca42b447ca87ceb88cf65751e85f4d6b039 (patch)
tree1220a45357bc172ef4f04ad277fd6254c165aac2 /src/md5sum.c
parent9793cca9084fdabf0d9919ee2508ab7f254449f5 (diff)
downloadcoreutils-84131ca42b447ca87ceb88cf65751e85f4d6b039.tar.xz
(main) [!O_BINARY]: Changed default read mode
back to text, to sync with documentation and for backwards compatibility.
Diffstat (limited to 'src/md5sum.c')
-rw-r--r--src/md5sum.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/md5sum.c b/src/md5sum.c
index cb86e355a..ae92fa37f 100644
--- a/src/md5sum.c
+++ b/src/md5sum.c
@@ -662,6 +662,9 @@ main (int argc, char **argv)
usage (EXIT_FAILURE);
}
+ if (!O_BINARY && binary < 0)
+ binary = 0;
+
if (optind == argc)
argv[argc++] = "-";