diff options
author | kientzle <kientzle@FreeBSD.org> | 2006-03-21 16:55:46 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2006-03-21 16:55:46 +0000 |
commit | 537ab73b2f9d8cc3e849014fd44738b6a48f6c99 (patch) | |
tree | c3aca38252d2ed10ab3875ada2f51f284743c856 /lib/libarchive/archive_read_support_format_iso9660.c | |
parent | b09a8950a1301d97aef8e2975e34a3ba5bc451c3 (diff) | |
download | FreeBSD-src-537ab73b2f9d8cc3e849014fd44738b6a48f6c99.zip FreeBSD-src-537ab73b2f9d8cc3e849014fd44738b6a48f6c99.tar.gz |
POSIX.1e-style Extended Attribute support
This commit implements storing/reading POSIX.1e-style extended
attribute information in "pax" format archives. An outline of the
storage format is in the tar.5 manpage. The archive_read_extract()
function has code to restore those archives to disk for Linux; FreeBSD
implementation is forthcoming.
Many thanks to Jaakko Heinonen for finding flaws in earlier
proposals and doing the bulk of the coding in this work.
Diffstat (limited to 'lib/libarchive/archive_read_support_format_iso9660.c')
-rw-r--r-- | lib/libarchive/archive_read_support_format_iso9660.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libarchive/archive_read_support_format_iso9660.c b/lib/libarchive/archive_read_support_format_iso9660.c index 510d7f0..065bf9b 100644 --- a/lib/libarchive/archive_read_support_format_iso9660.c +++ b/lib/libarchive/archive_read_support_format_iso9660.c @@ -364,7 +364,7 @@ archive_read_format_iso9660_read_header(struct archive *a, /* If this is a directory, read in all of the entries right now. */ if (S_ISDIR(st.st_mode)) { - while(iso9660->entry_bytes_remaining > 0) { + while (iso9660->entry_bytes_remaining > 0) { const void *block; const unsigned char *p; ssize_t step = iso9660->logical_block_size; @@ -918,7 +918,7 @@ next_entry(struct iso9660 *iso9660) + iso9660->pending_files[0]->size; /* Now, try to find an earlier one. */ - for(i = 0; i < iso9660->pending_files_used; i++) { + for (i = 0; i < iso9660->pending_files_used; i++) { /* Use the position of the file *end* as our comparison. */ uint64_t end_offset = iso9660->pending_files[i]->offset + iso9660->pending_files[i]->size; |