Thu Oct 2 20:51:41 2008 UTC ()
Merge time_t fix from HEAD and call it pkg_install-20081003.


(joerg)
diff -r1.8.2.4 -r1.8.2.5 pkgsrc/pkgtools/pkg_install/files/admin/audit.c
diff -r1.102.2.16 -r1.102.2.17 pkgsrc/pkgtools/pkg_install/files/lib/version.h

cvs diff -r1.8.2.4 -r1.8.2.5 pkgsrc/pkgtools/pkg_install/files/admin/audit.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/admin/audit.c 2008/08/21 16:04:39 1.8.2.4
+++ pkgsrc/pkgtools/pkg_install/files/admin/audit.c 2008/10/02 20:51:41 1.8.2.5
@@ -1,24 +1,24 @@ @@ -1,24 +1,24 @@
1/* $NetBSD: audit.c,v 1.8.2.4 2008/08/21 16:04:39 joerg Exp $ */ 1/* $NetBSD: audit.c,v 1.8.2.5 2008/10/02 20:51:41 joerg Exp $ */
2 2
3#if HAVE_CONFIG_H 3#if HAVE_CONFIG_H
4#include "config.h" 4#include "config.h"
5#endif 5#endif
6#include <nbcompat.h> 6#include <nbcompat.h>
7#if HAVE_SYS_CDEFS_H 7#if HAVE_SYS_CDEFS_H
8#include <sys/cdefs.h> 8#include <sys/cdefs.h>
9#endif 9#endif
10#ifndef lint 10#ifndef lint
11__RCSID("$NetBSD: audit.c,v 1.8.2.4 2008/08/21 16:04:39 joerg Exp $"); 11__RCSID("$NetBSD: audit.c,v 1.8.2.5 2008/10/02 20:51:41 joerg Exp $");
12#endif 12#endif
13 13
14/*- 14/*-
15 * Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>. 15 * Copyright (c) 2008 Joerg Sonnenberger <joerg@NetBSD.org>.
16 * All rights reserved. 16 * All rights reserved.
17 * 17 *
18 * Redistribution and use in source and binary forms, with or without 18 * Redistribution and use in source and binary forms, with or without
19 * modification, are permitted provided that the following conditions 19 * modification, are permitted provided that the following conditions
20 * are met: 20 * are met:
21 * 21 *
22 * 1. Redistributions of source code must retain the above copyright 22 * 1. Redistributions of source code must retain the above copyright
23 * notice, this list of conditions and the following disclaimer. 23 * notice, this list of conditions and the following disclaimer.
24 * 2. Redistributions in binary form must reproduce the above copyright 24 * 2. Redistributions in binary form must reproduce the above copyright
@@ -244,31 +244,31 @@ check_and_read_pkg_vulnerabilities(void) @@ -244,31 +244,31 @@ check_and_read_pkg_vulnerabilities(void)
244 if (verbose >= 1) { 244 if (verbose >= 1) {
245 if (stat(pkg_vulnerabilities_file, &st) == -1) { 245 if (stat(pkg_vulnerabilities_file, &st) == -1) {
246 if (errno == ENOENT) 246 if (errno == ENOENT)
247 errx(EXIT_FAILURE, 247 errx(EXIT_FAILURE,
248 "pkg-vulnerabilities not found, run %s -d", 248 "pkg-vulnerabilities not found, run %s -d",
249 getprogname()); 249 getprogname());
250 errx(EXIT_FAILURE, "pkg-vulnerabilities not readable"); 250 errx(EXIT_FAILURE, "pkg-vulnerabilities not readable");
251 } 251 }
252 now = time(NULL); 252 now = time(NULL);
253 now -= st.st_mtime; 253 now -= st.st_mtime;
254 if (now < 0) 254 if (now < 0)
255 warnx("pkg-vulnerabilities is from the future"); 255 warnx("pkg-vulnerabilities is from the future");
256 else if (now > 86400 * 7) 256 else if (now > 86400 * 7)
257 warnx("pkg-vulnerabilities is out of day (%d days old)", 257 warnx("pkg-vulnerabilities is out of day (%ld days old)",
258 now / 86400); 258 (long)(now / 86400));
259 else if (verbose >= 2) 259 else if (verbose >= 2)
260 warnx("pkg-vulnerabilities is %d day%s old", 260 warnx("pkg-vulnerabilities is %ld day%s old",
261 now / 86400, now / 86400 == 1 ? "" : "s"); 261 (long)(now / 86400), now / 86400 == 1 ? "" : "s");
262 } 262 }
263 263
264 pv = read_pkg_vulnerabilities(pkg_vulnerabilities_file, 0, check_signature); 264 pv = read_pkg_vulnerabilities(pkg_vulnerabilities_file, 0, check_signature);
265} 265}
266 266
267void 267void
268audit_pkgdb(int argc, char **argv) 268audit_pkgdb(int argc, char **argv)
269{ 269{
270 int rv; 270 int rv;
271 271
272 parse_options(argc, argv); 272 parse_options(argc, argv);
273 argv += optind; 273 argv += optind;
274 274

cvs diff -r1.102.2.16 -r1.102.2.17 pkgsrc/pkgtools/pkg_install/files/lib/version.h (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/version.h 2008/09/16 19:03:54 1.102.2.16
+++ pkgsrc/pkgtools/pkg_install/files/lib/version.h 2008/10/02 20:51:41 1.102.2.17
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: version.h,v 1.102.2.16 2008/09/16 19:03:54 joerg Exp $ */ 1/* $NetBSD: version.h,v 1.102.2.17 2008/10/02 20:51:41 joerg Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2001 Thomas Klausner. All rights reserved. 4 * Copyright (c) 2001 Thomas Klausner. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright 11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the 12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution. 13 * documentation and/or other materials provided with the distribution.
14 * 14 *
@@ -17,16 +17,16 @@ @@ -17,16 +17,16 @@
17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27#ifndef _INST_LIB_VERSION_H_ 27#ifndef _INST_LIB_VERSION_H_
28#define _INST_LIB_VERSION_H_ 28#define _INST_LIB_VERSION_H_
29 29
30#define PKGTOOLS_VERSION "20080916" 30#define PKGTOOLS_VERSION "20081003"
31 31
32#endif /* _INST_LIB_VERSION_H_ */ 32#endif /* _INST_LIB_VERSION_H_ */