Source-Changes-HG archive

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

[src/netbsd-1-4]: src/usr.sbin/pkg_install/lib Pull up revision 1.17 (request...



details:   https://anonhg.NetBSD.org/src/rev/a9869d178679
branches:  netbsd-1-4
changeset: 470833:a9869d178679
user:      he <he%NetBSD.org@localhost>
date:      Mon Jul 31 18:19:07 2000 +0000

description:
Pull up revision 1.17 (requested by hubertf):
  Update pkg_install tools by bringing in bug fixes and feature
  additions since the last release.  Fixes PR#10083 and PR#10687
  and a number of problems not formally reported.

diffstat:

 usr.sbin/pkg_install/lib/pen.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 666ba110f91c -r a9869d178679 usr.sbin/pkg_install/lib/pen.c
--- a/usr.sbin/pkg_install/lib/pen.c    Mon Jul 31 18:19:04 2000 +0000
+++ b/usr.sbin/pkg_install/lib/pen.c    Mon Jul 31 18:19:07 2000 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: pen.c,v 1.15.2.1 1999/09/13 22:33:43 he Exp $  */
+/*     $NetBSD: pen.c,v 1.15.2.2 2000/07/31 18:19:07 he Exp $  */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: pen.c,v 1.25 1997/10/08 07:48:12 charnier Exp";
 #else
-__RCSID("$NetBSD: pen.c,v 1.15.2.1 1999/09/13 22:33:43 he Exp $");
+__RCSID("$NetBSD: pen.c,v 1.15.2.2 2000/07/31 18:19:07 he Exp $");
 #endif
 #endif
 
@@ -87,7 +87,7 @@
        char   *cp;
        struct stat sb;
 
-       if (pen[0] && stat(pen, &sb) != FAIL && (min_free(pen) >= sz))
+       if (pen && pen[0] && stat(pen, &sb) != FAIL && (min_free(pen) >= sz))
                return pen;
        else if ((cp = getenv("PKG_TMPDIR")) != NULL && stat(cp, &sb) != FAIL && (min_free(cp) >= sz))
                (void) snprintf(pen, pensize, "%s/instmp.XXXXXX", cp);



Home | Main Index | Thread Index | Old Index