]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MfP4: set/unset tracking for atime, ctime, mtime, and size fields.
authorTim Kientzle <kientzle@FreeBSD.org>
Mon, 1 Sep 2008 04:54:29 +0000 (04:54 +0000)
committerTim Kientzle <kientzle@FreeBSD.org>
Mon, 1 Sep 2008 04:54:29 +0000 (04:54 +0000)
commit32364a7ddbdd1aa14cb300392005a024e7de4764
treedc7f549898d7874c74d1b0164b377afcf1ff7939
parentc7715560f17cc32911b80380e5e8c2a2026bc573
MfP4: set/unset tracking for atime, ctime, mtime, and size fields.
This generalizes the existing set/unset tracking for hardlink/symlink
fields and extends it to cover non-string fields.  Eventually, this
will be further extended to cover most fields.

In particular, this is needed to correctly detect when time fields
are missing (for example, reading ustar archives doesn't set atime or
ctime) for proper time restore and is helpful when trying to determine
whether to overwrite data when restoring hardlinks.

This commit updates the tests but not the docs.
lib/libarchive/archive_entry.c
lib/libarchive/archive_entry.h
lib/libarchive/archive_entry_private.h
lib/libarchive/test/test_entry.c