From 896a9484cb2f0e56db3c461d92d8844293e4437d Mon Sep 17 00:00:00 2001 From: Nathan Whitehorn Date: Sun, 13 Mar 2011 18:26:16 +0000 Subject: [PATCH] Rewind manifest file in case distributions are in a different order there. --- usr.sbin/bsdinstall/distextract/distextract.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/bsdinstall/distextract/distextract.c b/usr.sbin/bsdinstall/distextract/distextract.c index c7eea9dc271..397932f24cc 100644 --- a/usr.sbin/bsdinstall/distextract/distextract.c +++ b/usr.sbin/bsdinstall/distextract/distextract.c @@ -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");