Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Apr 2009 00:45:47 +0000 (UTC)
From:      Tim Kientzle <kientzle@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191169 - head/lib/libarchive
Message-ID:  <200904170045.n3H0jlQp098765@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kientzle
Date: Fri Apr 17 00:45:47 2009
New Revision: 191169
URL: http://svn.freebsd.org/changeset/base/191169

Log:
  Properly clone and free the recently-added "sourcepath" field.

Modified:
  head/lib/libarchive/archive_entry.c

Modified: head/lib/libarchive/archive_entry.c
==============================================================================
--- head/lib/libarchive/archive_entry.c	Fri Apr 17 00:44:47 2009	(r191168)
+++ head/lib/libarchive/archive_entry.c	Fri Apr 17 00:45:47 2009	(r191169)
@@ -370,6 +370,7 @@ archive_entry_clear(struct archive_entry
 	aes_clean(&entry->ae_gname);
 	aes_clean(&entry->ae_hardlink);
 	aes_clean(&entry->ae_pathname);
+	aes_clean(&entry->ae_sourcepath);
 	aes_clean(&entry->ae_symlink);
 	aes_clean(&entry->ae_uname);
 	archive_entry_acl_clear(entry);
@@ -399,6 +400,7 @@ archive_entry_clone(struct archive_entry
 	aes_copy(&entry2->ae_gname, &entry->ae_gname);
 	aes_copy(&entry2->ae_hardlink, &entry->ae_hardlink);
 	aes_copy(&entry2->ae_pathname, &entry->ae_pathname);
+	aes_copy(&entry2->ae_sourcepath, &entry->ae_sourcepath);
 	aes_copy(&entry2->ae_symlink, &entry->ae_symlink);
 	entry2->ae_set = entry->ae_set;
 	aes_copy(&entry2->ae_uname, &entry->ae_uname);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904170045.n3H0jlQp098765>