Pull in rev 1.49 of perform.c from src/usr.sbin/pkg_install/info. This

fixes a bug where the pkg_dbdir could no longer be a symlink to a
directory.
This commit is contained in:
jlam 2003-09-10 17:31:49 +00:00
parent f9a853f739
commit 2604176f00

View file

@ -1,4 +1,4 @@
/* $NetBSD: perform.c,v 1.10 2003/09/09 13:34:21 jlam Exp $ */
/* $NetBSD: perform.c,v 1.11 2003/09/10 17:31:49 jlam 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.23 1997/10/13 15:03:53 jkh Exp";
#else
__RCSID("$NetBSD: perform.c,v 1.10 2003/09/09 13:34:21 jlam Exp $");
__RCSID("$NetBSD: perform.c,v 1.11 2003/09/10 17:31:49 jlam Exp $");
#endif
#endif
@ -343,7 +343,7 @@ pkg_perform(lpkg_head_t *pkghead)
if (CheckPkg) {
err_cnt += CheckForPkg(CheckPkg, dbdir);
} else if (AllInstalled) {
if (!isdir(dbdir))
if (!(isdir(dbdir) || islinktodir(dbdir)))
return 1;
if (File2Pkg) {