pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/pkgtools/pkg_install/files/create



Module Name:    pkgsrc
Committed By:   martin
Date:           Fri Dec 27 17:12:59 UTC 2024

Modified Files:
        pkgsrc/pkgtools/pkg_install/files/create: build.c

Log Message:
make_dist(): remove unused initial_dir buffer


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/pkgtools/pkg_install/files/create/build.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/pkg_install/files/create/build.c
diff -u pkgsrc/pkgtools/pkg_install/files/create/build.c:1.19 pkgsrc/pkgtools/pkg_install/files/create/build.c:1.20
--- pkgsrc/pkgtools/pkg_install/files/create/build.c:1.19       Sat Dec  7 13:56:46 2024
+++ pkgsrc/pkgtools/pkg_install/files/create/build.c    Fri Dec 27 17:12:58 2024
@@ -1,4 +1,4 @@
-/*     $NetBSD: build.c,v 1.19 2024/12/07 13:56:46 martin Exp $        */
+/*     $NetBSD: build.c,v 1.20 2024/12/27 17:12:58 martin 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.19 2024/12/07 13:56:46 martin Exp $");
+__RCSID("$NetBSD: build.c,v 1.20 2024/12/27 17:12:58 martin Exp $");
 
 /*-
  * Copyright (c) 2007 Joerg Sonnenberger <joerg%NetBSD.org@localhost>.
@@ -229,7 +229,6 @@ make_dist(const char *pkg, const char *s
        struct archive *archive;
        struct archive_entry *entry, *sparse_entry;
        struct archive_entry_linkresolver *resolver;
-       char *initial_cwd;
        
        archive = archive_write_new();
        archive_write_set_format_pax_restricted(archive);
@@ -291,8 +290,6 @@ make_dist(const char *pkg, const char *s
        if (Preserve)
                write_meta_file(preserve_file, archive);
 
-       initial_cwd = getcwd(NULL, 0);
-
        for (p = plist->head; p; p = p->next) {
                if (p->type == PLIST_FILE) {
                        write_normal_file(p->name, archive, resolver, owner, group);
@@ -325,8 +322,6 @@ make_dist(const char *pkg, const char *s
 
        if (archive_write_free(archive))
                errx(2, "cannot finish archive: %s", archive_error_string(archive));
-
-       free(initial_cwd);
 }
 
 static struct memory_file *



Home | Main Index | Thread Index | Old Index