diff options
author | kientzle <kientzle@FreeBSD.org> | 2004-04-26 23:37:54 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2004-04-26 23:37:54 +0000 |
commit | 736725bcabf6c72ac5bfda301f3aa3b447ac4c6b (patch) | |
tree | f0f5a81c35118c56a6a3ac1a5d72fd50e2cdf842 /lib/libarchive/archive_write_set_format_shar.c | |
parent | f5f7c88a25b2bbf11fbacb20c1194ad48018294b (diff) | |
download | FreeBSD-src-736725bcabf6c72ac5bfda301f3aa3b447ac4c6b.zip FreeBSD-src-736725bcabf6c72ac5bfda301f3aa3b447ac4c6b.tar.gz |
Update file flag handling.
The new fflags support in archive_entry supports Linux and FreeBSD
file flags and is a bit more gracious about unrecognized flag names
than strtofflags(3). This involves some minor API breakage.
The default tar format ("restricted pax") now enables pax extensions
when archiving files that have flags. In particular, copying dir
heirarchies with 'bsdtar cf - -C src . | bsdtar xpf - -C dest' now
preserves file flags. (Note the "p" on extract!)
While I'm here, fill in some additional explanation in the
archive_entry.3 manpage, fill in some missing MLINKS, mark some
overlooked internal functions 'static', and make a few minor style
fixes.
Diffstat (limited to 'lib/libarchive/archive_write_set_format_shar.c')
-rw-r--r-- | lib/libarchive/archive_write_set_format_shar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libarchive/archive_write_set_format_shar.c b/lib/libarchive/archive_write_set_format_shar.c index f9082c6..5944e0f 100644 --- a/lib/libarchive/archive_write_set_format_shar.c +++ b/lib/libarchive/archive_write_set_format_shar.c @@ -423,7 +423,7 @@ archive_write_shar_finish_entry(struct archive *a) archive_entry_pathname(shar->entry)); } - if ((p = archive_entry_fflags(shar->entry)) != NULL) { + if ((p = archive_entry_fflags_text(shar->entry)) != NULL) { shar_printf(a, "chflags %s %s\n", p, archive_entry_pathname(shar->entry)); } |