mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Rewind manifest file in case distributions are in a different order there.
This commit is contained in:
parent
46cc2c0240
commit
896a9484cb
1 changed files with 2 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue