diff options
author | kientzle <kientzle@FreeBSD.org> | 2004-04-12 01:16:16 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2004-04-12 01:16:16 +0000 |
commit | 444807bb419cc1185bb2d531a75682c02d185fc1 (patch) | |
tree | 620d152a72f7229f537f8ea04ba7d296fe1e368b /lib/libarchive/archive_write_set_format_pax.c | |
parent | cd3b6fa4ace48070f152d7849f93feae16e76cdd (diff) | |
download | FreeBSD-src-444807bb419cc1185bb2d531a75682c02d185fc1.zip FreeBSD-src-444807bb419cc1185bb2d531a75682c02d185fc1.tar.gz |
More work on ACLs: fix error in archive_entry's ACL parsing code,
try to set ACLs even if fflag restore fails, first cut at reading
Solaris tar ACLs
Code improvement: merge gnu tar read support into main tar reader;
this eliminates a lot of duplicate code and generalizes the tar
reader to handle formats with GNU-like extensions.
Style: Makefile cleanup, eliminate 'dmalloc' references, remove 'tartype'
from archive_entry (this makes archive_entry more format-agnostic)
Thanks to: David Magda for providing Solaris tar test files
Diffstat (limited to 'lib/libarchive/archive_write_set_format_pax.c')
-rw-r--r-- | lib/libarchive/archive_write_set_format_pax.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/libarchive/archive_write_set_format_pax.c b/lib/libarchive/archive_write_set_format_pax.c index ab060fd..503062c 100644 --- a/lib/libarchive/archive_write_set_format_pax.c +++ b/lib/libarchive/archive_write_set_format_pax.c @@ -29,9 +29,6 @@ __FBSDID("$FreeBSD$"); #include <sys/stat.h> #include <errno.h> -#ifdef HAVE_DMALLOC -#include <dmalloc.h> -#endif #include <stdlib.h> #include <string.h> #include <unistd.h> @@ -584,7 +581,7 @@ archive_write_pax_header(struct archive *a, /* Format 'ustar' header for main entry. */ /* We don't care if this returns an error. */ - __archive_write_format_header_ustar(a, ustarbuff, entry_main); + __archive_write_format_header_ustar(a, ustarbuff, entry_main, -1); /* If we built any extended attributes, write that entry first. */ ret = 0; @@ -598,7 +595,6 @@ archive_write_pax_header(struct archive *a, p = archive_entry_pathname(entry_main); pax_attr_name = build_pax_attribute_name(p, &pax_entry_name); - archive_entry_set_tartype(pax_attr_entry, 'x'); archive_entry_set_pathname(pax_attr_entry, pax_attr_name); st.st_size = archive_strlen(&(pax->pax_header)); st.st_uid = st_main->st_uid; @@ -612,7 +608,7 @@ archive_write_pax_header(struct archive *a, archive_entry_gname(entry_main)); ret = __archive_write_format_header_ustar(a, paxbuff, - pax_attr_entry); + pax_attr_entry, 'x'); archive_entry_free(pax_attr_entry); free(pax_entry_name.s); |