Rewind manifest file in case distributions are in a different order there.

This commit is contained in:
Nathan Whitehorn 2011-03-13 18:26:16 +00:00
parent 46cc2c0240
commit 896a9484cb

View File

@ -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");