mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix the cpio bug tested for by r182092 of usr.bin/cpio/test.
Since various 'find' incantations can emit container directories in various orders, we cannot refuse to update a dir because it's apparently the same age. MFC after: 3 days
This commit is contained in:
parent
c9c5c49045
commit
8d14bd8cc2
1 changed files with 5 additions and 1 deletions
|
|
@ -861,7 +861,11 @@ restore_entry(struct archive_write_disk *a)
|
|||
|
||||
/* TODO: if it's a symlink... */
|
||||
|
||||
if (a->flags & ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER) {
|
||||
/*
|
||||
* NO_OVERWRITE_NEWER doesn't apply to directories.
|
||||
*/
|
||||
if ((a->flags & ARCHIVE_EXTRACT_NO_OVERWRITE_NEWER)
|
||||
&& !S_ISDIR(a->st.st_mode)) {
|
||||
if (!older(&(a->st), a->entry)) {
|
||||
archive_set_error(&a->archive, 0,
|
||||
"File on disk is not older; skipping.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue