diff options
author | joerg <joerg@pkgsrc.org> | 2008-08-05 19:37:48 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-08-05 19:37:48 +0000 |
commit | 2370238aab427067a982c2347fb8d8744cf853b4 (patch) | |
tree | 9089ee863fd9681ae0041e97f0fd1c56bf1a84b7 | |
parent | 3b08741de81a2eef7291521585b79600ae914e1e (diff) | |
download | pkgsrc-2370238aab427067a982c2347fb8d8744cf853b4.tar.gz |
Unbreak last commit.
-rw-r--r-- | pkgtools/pkg_install/files/delete/perform.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgtools/pkg_install/files/delete/perform.c b/pkgtools/pkg_install/files/delete/perform.c index 56c057c91a8..ce165a55f54 100644 --- a/pkgtools/pkg_install/files/delete/perform.c +++ b/pkgtools/pkg_install/files/delete/perform.c @@ -1,4 +1,4 @@ -/* $NetBSD: perform.c,v 1.23.2.6 2008/08/05 19:32:46 joerg Exp $ */ +/* $NetBSD: perform.c,v 1.23.2.7 2008/08/05 19:37:48 joerg Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -11,7 +11,7 @@ #if 0 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.15 1997/10/13 15:03:52 jkh Exp"; #else -__RCSID("$NetBSD: perform.c,v 1.23.2.6 2008/08/05 19:32:46 joerg Exp $"); +__RCSID("$NetBSD: perform.c,v 1.23.2.7 2008/08/05 19:37:48 joerg Exp $"); #endif #endif @@ -98,13 +98,15 @@ sanity_check(const char *pkg) { char *fname; - fname = pkgdb_pkg_file(fname, CONTENTS_NAME); + fname = pkgdb_pkg_file(pkg, CONTENTS_FNAME); if (!fexists(fname)) { cleanup(0); errx(2, "installed package %s has no %s file!", pkg, CONTENTS_FNAME); } + + free(fname); } void @@ -464,7 +466,7 @@ require_find_recursive_down(lpkg_t *thislpp, package_t *plist) free(best_installed); cfile = fopen(fname, "r"); if (!cfile) { - warn("unable to open '%s' file", fname; + warn("unable to open '%s' file", fname); free(fname); fail = 1; goto fail; |