diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-03-13 18:26:16 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2011-03-13 18:26:16 +0000 |
commit | 8c134ab018e2f06e785699771decadf41cffb453 (patch) | |
tree | 172e9240d1f41eaadc28b1302e4d8cd347ccb680 /usr.sbin | |
parent | baa953a2a5170d809cecfc08c7711a1e36308412 (diff) | |
download | FreeBSD-src-8c134ab018e2f06e785699771decadf41cffb453.zip FreeBSD-src-8c134ab018e2f06e785699771decadf41cffb453.tar.gz |
Rewind manifest file in case distributions are in a different order there.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bsdinstall/distextract/distextract.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/bsdinstall/distextract/distextract.c b/usr.sbin/bsdinstall/distextract/distextract.c index c7eea9d..397932f 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"); |