summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-12-10 19:35:54 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-12-10 19:35:54 +0000
commit2262ee76cc1cc5ff1756c4ec853ab564c1e427e9 (patch)
tree8217e3781026d36be1595c478d87befa3f30b451 /bin
parent02291b34b53ef5673442f57da77d3554d3ff4294 (diff)
GNU md5sum uses tab not space to separate filename and hash. Fixes
parsing of GNU-style checklist files for files with spaces in them. From Emil Mikulic; closes PR 4027
Diffstat (limited to 'bin')
-rw-r--r--bin/md5/md5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/md5/md5.c b/bin/md5/md5.c
index 9e4ccd7cc97..2a6eb2dffb2 100644
--- a/bin/md5/md5.c
+++ b/bin/md5/md5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: md5.c,v 1.30 2004/05/04 18:41:57 millert Exp $ */
+/* $OpenBSD: md5.c,v 1.31 2004/12/10 19:35:53 millert Exp $ */
/*
* Copyright (c) 2001, 2003 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -420,7 +420,7 @@ digest_filelist(int algorithm_def, char *file)
if (*p == '\0')
continue;
filename = p;
- p = strpbrk(filename, " \t\r");
+ p = strpbrk(filename, "\t\r");
if (p != NULL)
*p = '\0';
}