pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/create When calling open(2)...
details: https://anonhg.NetBSD.org/pkgsrc/rev/28f7cd714d84
branches: trunk
changeset: 537110:28f7cd714d84
user: rillig <rillig%pkgsrc.org@localhost>
date: Thu Jan 03 22:31:20 2008 +0000
description:
When calling open(2), don't try to get an error message from libarchive,
since it won't know anything about it. (hi joerg!)
diffstat:
pkgtools/pkg_install/files/create/build.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e411105174c6 -r 28f7cd714d84 pkgtools/pkg_install/files/create/build.c
--- a/pkgtools/pkg_install/files/create/build.c Thu Jan 03 21:16:51 2008 +0000
+++ b/pkgtools/pkg_install/files/create/build.c Thu Jan 03 22:31:20 2008 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: build.c,v 1.4 2007/08/08 12:21:14 tnn Exp $ */
+/* $NetBSD: build.c,v 1.5 2008/01/03 22:31:20 rillig Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -11,7 +11,7 @@
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.38 1997/10/13 15:03:51 jkh Exp";
#else
-__RCSID("$NetBSD: build.c,v 1.4 2007/08/08 12:21:14 tnn Exp $");
+__RCSID("$NetBSD: build.c,v 1.5 2008/01/03 22:31:20 rillig Exp $");
#endif
#endif
@@ -217,7 +217,7 @@
case S_IFREG:
fd = open(name, O_RDONLY);
if (fd == -1)
- errx(2, "cannot open data file %s: %s", name, archive_error_string(archive));
+ err(2, "cannot open data file %s", name);
len = st.st_size;
Home |
Main Index |
Thread Index |
Old Index