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 Restore symlinks as ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4475a3ce492b
branches:  trunk
changeset: 541430:4475a3ce492b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Apr 22 14:27:51 2008 +0000

description:
Restore symlinks as the code was accidently removed.

diffstat:

 pkgtools/pkg_install/files/create/build.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 9e1ac5eb6625 -r 4475a3ce492b pkgtools/pkg_install/files/create/build.c
--- a/pkgtools/pkg_install/files/create/build.c Tue Apr 22 14:19:22 2008 +0000
+++ b/pkgtools/pkg_install/files/create/build.c Tue Apr 22 14:27:51 2008 +0000
@@ -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 @@
                        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:



Home | Main Index | Thread Index | Old Index