svn commit: r219618 - head/usr.sbin/bsdinstall/distextract
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Sun Mar 13 18:26:17 UTC 2011
Author: nwhitehorn
Date: Sun Mar 13 18:26:16 2011
New Revision: 219618
URL: http://svn.freebsd.org/changeset/base/219618
Log:
Rewind manifest file in case distributions are in a different order there.
Modified:
head/usr.sbin/bsdinstall/distextract/distextract.c
Modified: head/usr.sbin/bsdinstall/distextract/distextract.c
==============================================================================
--- head/usr.sbin/bsdinstall/distextract/distextract.c Sun Mar 13 18:23:47 2011 (r219617)
+++ head/usr.sbin/bsdinstall/distextract/distextract.c Sun Mar 13 18:26:16 2011 (r219618)
@@ -96,6 +96,8 @@ count_files(const char *file)
if (manifest != NULL) {
char line[512];
char *tok1, *tok2;
+
+ rewind(manifest);
while (fgets(line, sizeof(line), manifest) != NULL) {
tok2 = line;
tok1 = strsep(&tok2, "\t");
More information about the svn-src-all
mailing list