diff options
author | joerg <joerg@pkgsrc.org> | 2009-03-08 17:26:23 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-03-08 17:26:23 +0000 |
commit | fcc1963a3e0818ea4bfc5af2f7e48d3b755cfe2c (patch) | |
tree | 4526361a1f2f0116e7392b6a1b07df0f4754ef73 /pkgtools/pkg_install | |
parent | afe9d7094256834663eacfed213ee3f9bcf06e34 (diff) | |
download | pkgsrc-fcc1963a3e0818ea4bfc5af2f7e48d3b755cfe2c.tar.gz |
If writing to the archive failed, tell user the file it tried to write.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r-- | pkgtools/pkg_install/files/create/build.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/create/build.c b/pkgtools/pkg_install/files/create/build.c index 7469d1ddbbf..3869358ee01 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.10 2009/02/05 16:06:55 joerg Exp $ */ +/* $NetBSD: build.c,v 1.11 2009/03/08 17:26:23 joerg Exp $ */ #if HAVE_CONFIG_H #include "config.h" @@ -7,7 +7,7 @@ #if HAVE_SYS_CDEFS_H #include <sys/cdefs.h> #endif -__RCSID("$NetBSD: build.c,v 1.10 2009/02/05 16:06:55 joerg Exp $"); +__RCSID("$NetBSD: build.c,v 1.11 2009/03/08 17:26:23 joerg Exp $"); /*- * Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>. @@ -130,7 +130,8 @@ write_entry(struct archive *archive, struct archive_entry *entry) } if (archive_write_header(archive, entry)) { - errx(2, "cannot write to archive: %s", + errx(2, "cannot write %s to archive: %s", + archive_entry_pathname(entry), archive_error_string(archive)); } |