which file has the same name; it is better that front-end applications such as tar decide
how they handle that case.
SVN-Revision: 3480
*isoentpp = NULL;
return (ARCHIVE_FAILED);
}
- if (archive_entry_mtime(f1->entry) <
- archive_entry_mtime(f2->entry) || np->virtual) {
- /* Swap file entries. */
- np->file = f2;
- isoent->file = f1;
- np->virtual = 0;
- }
+
+ /* Swap file entries. */
+ np->file = f2;
+ isoent->file = f1;
+ np->virtual = 0;
+
_isoent_free(isoent);
*isoentpp = np;
return (ARCHIVE_OK);
#endif
struct xar *xar = (struct xar *)a->format_data;
struct file *dent, *file, *np;
+ struct archive_entry *ent;
const char *fn, *p;
int l;
*filepp = NULL;
return (ARCHIVE_FAILED);
}
- if (archive_entry_mtime(np->entry) <
- archive_entry_mtime(file->entry) || np->virtual) {
- /* Swap files. */
- struct archive_entry *ent;
- ent = np->entry;
- np->entry = file->entry;
- file->entry = ent;
- np->virtual = 0;
- }
+ /* Swap files. */
+ ent = np->entry;
+ np->entry = file->entry;
+ file->entry = ent;
+ np->virtual = 0;
+
file_free(file);
*filepp = np;
return (ARCHIVE_OK);