PERFORCE change 163758 for review
David Forsythe
dforsyth at FreeBSD.org
Mon Jun 8 04:39:31 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=163758
Change 163758 by dforsyth at squirrel on 2009/06/08 04:38:46
Don't die when a package database contains non-directories.
Affected files ...
.. //depot/projects/soc2009/dforsyth_libpkg/libpkg/pkgdb.c#11 edit
Differences ...
==== //depot/projects/soc2009/dforsyth_libpkg/libpkg/pkgdb.c#11 (text+ko) ====
@@ -91,9 +91,12 @@
for (i = 0; i < pkg_count; ++i) {
p = pkgdb_read_pkg_hierdb(db, ents[i]->d_name);
if (p == NULL) {
+ /*
pkgdb_free_pkg_list(db);
free(ents);
return (-1);
+ */
+ continue;
}
pkgdb_pkg_list_append(db, p);
free(ents[i]);
More information about the p4-projects
mailing list