When adding the checksums for the individual file entries in the generated

+CONTENTS file, if the entry is also the last in the package's list, adjust
the tail pointer accordingly.
This commit is contained in:
agc 2001-05-21 12:05:20 +00:00
parent 83dc57abd5
commit 8f6a8bb131
1 changed files with 5 additions and 2 deletions

View File

@ -1,11 +1,11 @@
/* $NetBSD: pl.c,v 1.20 2001/05/18 13:21:38 agc Exp $ */
/* $NetBSD: pl.c,v 1.21 2001/05/21 12:05:20 agc Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#if 0
static const char *rcsid = "from FreeBSD Id: pl.c,v 1.11 1997/10/08 07:46:35 charnier Exp";
#else
__RCSID("$NetBSD: pl.c,v 1.20 2001/05/18 13:21:38 agc Exp $");
__RCSID("$NetBSD: pl.c,v 1.21 2001/05/21 12:05:20 agc Exp $");
#endif
#endif
@ -195,6 +195,9 @@ check_list(char *home, package_t *pkg, const char *PkgName)
tmp->type = PLIST_COMMENT; /* PLIST_MD5 - HF */
tmp->next = p->next;
tmp->prev = p;
if (p == pkg->tail) {
pkg->tail = tmp;
}
p->next = tmp;
p = tmp;
}