diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2003-08-12 06:54:04 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2003-08-12 06:54:04 +0000 |
commit | 604394b69095c6ffe7728a206805da4b150ec3b3 (patch) | |
tree | eb0cfb36c1bd8f39eaba3d2a6bd86e130c709110 /usr.sbin | |
parent | 4ca7c19319c02b03d8c0cc19b587a6eaea7f05bf (diff) |
fix pkg->tail as needed, so that last md5 in CONTENTS does not get erased.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_install/create/pl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/create/pl.c b/usr.sbin/pkg_install/create/pl.c index 503b6e31c48..ba5f4d7da94 100644 --- a/usr.sbin/pkg_install/create/pl.c +++ b/usr.sbin/pkg_install/create/pl.c @@ -1,7 +1,7 @@ -/* $OpenBSD: pl.c,v 1.9 2003/07/04 17:31:19 avsm Exp $ */ +/* $OpenBSD: pl.c,v 1.10 2003/08/12 06:54:03 espie Exp $ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: pl.c,v 1.9 2003/07/04 17:31:19 avsm Exp $"; +static const char rcsid[] = "$OpenBSD: pl.c,v 1.10 2003/08/12 06:54:03 espie Exp $"; #endif /* @@ -67,6 +67,8 @@ check_list(char *home, package_t *pkg) tmp->next = p->next; tmp->prev = p; p->next = tmp; + if (pkg->tail == p) + pkg->tail = tmp; p = tmp; } break; |