Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/usr.sbin/pkg_install/add Pull up revision 1.3 (requeste...



details:   https://anonhg.NetBSD.org/src/rev/93e0cc24d4cd
branches:  netbsd-1-5
changeset: 493142:93e0cc24d4cd
user:      he <he%NetBSD.org@localhost>
date:      Wed Jun 26 16:52:09 2002 +0000

description:
Pull up revision 1.3 (requested by taca):
  Synchronize with recent developments:
   o close a memory leak
   o clarify error message if running out of file descriptors
   o implement new packing list directive, @blddep
   o improve buffer size checks
   o improve error handling on installation of prerequisite packages
   o add optional file verification (none, gpg, pgp5)

diffstat:

 usr.sbin/pkg_install/add/verify.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (58 lines):

diff -r 9cb51d8b88d3 -r 93e0cc24d4cd usr.sbin/pkg_install/add/verify.c
--- a/usr.sbin/pkg_install/add/verify.c Wed Jun 26 16:51:41 2002 +0000
+++ b/usr.sbin/pkg_install/add/verify.c Wed Jun 26 16:52:09 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: verify.c,v 1.2.2.2 2002/02/23 18:18:45 he Exp $ */
+/* $NetBSD: verify.c,v 1.2.2.3 2002/06/26 16:52:09 he Exp $ */
 
 /*
  * Copyright (c) 2001 Alistair G. Crooks.  All rights reserved.
@@ -35,7 +35,7 @@
 #ifndef lint
 __COPYRIGHT("@(#) Copyright (c) 1999 \
                The NetBSD Foundation, Inc.  All rights reserved.");
-__RCSID("$NetBSD: verify.c,v 1.2.2.2 2002/02/23 18:18:45 he Exp $");
+__RCSID("$NetBSD: verify.c,v 1.2.2.3 2002/06/26 16:52:09 he Exp $");
 #endif
 
 #include <sys/types.h>
@@ -65,10 +65,10 @@
 
 /* called when gpg verification type is selected */
 static int
-do_verify(const char *pkgname, const char *cmd, const char **extensions)
+do_verify(const char *pkgname, const char *cmd, const char *const *extensions)
 {
        struct stat     st;
-       const char    **ep;
+       const char    *const *ep;
        char            buf[BUFSIZ];
        char            f[FILENAME_MAX];
        int             i;
@@ -104,7 +104,7 @@
 }
 
 /* table holding possible verifications which can be made */
-static ver_t   vertab[] = {
+static const ver_t     vertab[] = {
        { "none",       NULL,                   { NULL } },
        { "gpg",        "gpg --verify %s",      { ".sig", ".asc", NULL } },
        { "pgp5",       "pgpv %s",              { ".sig", ".asc", ".pgp", NULL } },
@@ -125,7 +125,7 @@
 char *
 get_verification(void)
 {
-       ver_t  *vp;
+       const ver_t *vp;
 
        if (verification_type != NULL) {
                for (vp = vertab ; vp->name ; vp++) {
@@ -141,7 +141,7 @@
 int
 verify(const char *pkg)
 {
-       ver_t   *vp;
+       const ver_t *vp;
 
        if (verification_type == NULL) {
                return do_verify(pkg, NULL, NULL);



Home | Main Index | Thread Index | Old Index