diff options
author | rillig <rillig@pkgsrc.org> | 2008-01-03 22:31:20 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2008-01-03 22:31:20 +0000 |
commit | eeebd3ec03b97012777b72e3d314614198fd4e2a (patch) | |
tree | ede5cddbd787ac4795050bb0ea6832e49b293046 /pkgtools | |
parent | b4dbddd97d99d61a04597a8e40a723f9ffbf30f2 (diff) | |
download | pkgsrc-eeebd3ec03b97012777b72e3d314614198fd4e2a.tar.gz |
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 (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkg_install/files/create/build.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/create/build.c b/pkgtools/pkg_install/files/create/build.c index 97efb77cad4..f61e98a79c4 100644 --- a/pkgtools/pkg_install/files/create/build.c +++ b/pkgtools/pkg_install/files/create/build.c @@ -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 @@ write_normal_file(const char *name, struct archive *archive, const char *owner, 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; |