Date: Sun, 13 Mar 2011 18:26:16 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r219618 - head/usr.sbin/bsdinstall/distextract Message-ID: <201103131826.p2DIQGks062473@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103131826.p2DIQGks062473>