diff --git a/usr.sbin/pkg_install/lib/str.c b/usr.sbin/pkg_install/lib/str.c index 8c78ae195d7b..30804991d24f 100644 --- a/usr.sbin/pkg_install/lib/str.c +++ b/usr.sbin/pkg_install/lib/str.c @@ -1,11 +1,11 @@ -/* $NetBSD: str.c,v 1.44 2003/09/08 22:11:14 jlam Exp $ */ +/* $NetBSD: str.c,v 1.45 2003/09/09 08:22:39 jlam Exp $ */ #include #ifndef lint #if 0 static const char *rcsid = "Id: str.c,v 1.5 1997/10/08 07:48:21 charnier Exp"; #else -__RCSID("$NetBSD: str.c,v 1.44 2003/09/08 22:11:14 jlam Exp $"); +__RCSID("$NetBSD: str.c,v 1.45 2003/09/09 08:22:39 jlam Exp $"); #endif #endif @@ -644,7 +644,7 @@ add_to_list_fn(const char *pkg, void *vp) char fn[FILENAME_MAX]; snprintf(fn, sizeof(fn), "%s/%s", _pkgdb_getPKGDB_DIR(), pkg); - if (!(isdir(fn) || islinktodir(fn))) { + if (isdir(fn) || islinktodir(fn)) { lpp = alloc_lpkg(pkg); TAILQ_INSERT_TAIL(pkgs, lpp, lp_link); }