summaryrefslogtreecommitdiff
path: root/pkgtools/pkg_install
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-04-22 14:27:51 +0000
committerjoerg <joerg@pkgsrc.org>2008-04-22 14:27:51 +0000
commit24f63313756ff1e5251c54ec8a828123f8e5734b (patch)
treea61b5b7be87c87765f4b61c510edcded5ef6071d /pkgtools/pkg_install
parent9ded143e5c47e228d62792b710884b1be038ecfb (diff)
downloadpkgsrc-24f63313756ff1e5251c54ec8a828123f8e5734b.tar.gz
Restore symlinks as the code was accidently removed.
Diffstat (limited to 'pkgtools/pkg_install')
-rw-r--r--pkgtools/pkg_install/files/create/build.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgtools/pkg_install/files/create/build.c b/pkgtools/pkg_install/files/create/build.c
index fa146491af8..6222a7226d2 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.6 2008/04/22 13:47:08 joerg Exp $ */
+/* $NetBSD: build.c,v 1.7 2008/04/22 14:27:51 joerg 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.6 2008/04/22 13:47:08 joerg Exp $");
+__RCSID("$NetBSD: build.c,v 1.7 2008/04/22 14:27:51 joerg Exp $");
#endif
#endif
@@ -171,6 +171,9 @@ write_normal_file(const char *name, struct archive *archive,
err(2, "cannot read symlink %s", name);
buf[buf_len] = '\0';
archive_entry_set_symlink(entry, buf);
+
+ if (archive_write_header(archive, entry))
+ errx(2, "cannot write to archive: %s", archive_error_string(archive));
break;
case S_IFREG: