archive_set_error(&(a->archive), EINVAL, "pathname is empty");
return (ARCHIVE_FAILED);
}
- r = get_filetime_mbs(a, pathname, 0, &(a->newer_ctime_sec),
+ r = get_filetime_mbs(a, pathname, 1, &(a->newer_ctime_sec),
&(a->newer_ctime_nsec));
if (r != ARCHIVE_OK)
return (r);
archive_set_error(&(a->archive), EINVAL, "pathname is empty");
return (ARCHIVE_FAILED);
}
- r = get_filetime_wcs(a, pathname, 0, &(a->newer_ctime_sec),
+ r = get_filetime_wcs(a, pathname, 1, &(a->newer_ctime_sec),
&(a->newer_ctime_nsec));
if (r != ARCHIVE_OK)
return (r);
archive_set_error(&(a->archive), EINVAL, "pathname is empty");
return (ARCHIVE_FAILED);
}
- r = get_filetime_mbs(a, pathname, 0, &(a->older_ctime_sec),
+ r = get_filetime_mbs(a, pathname, 1, &(a->older_ctime_sec),
&(a->older_ctime_nsec));
if (r != ARCHIVE_OK)
return (r);
archive_set_error(&(a->archive), EINVAL, "pathname is empty");
return (ARCHIVE_FAILED);
}
- r = get_filetime_wcs(a, pathname, 0, &(a->older_ctime_sec),
+ r = get_filetime_wcs(a, pathname, 1, &(a->older_ctime_sec),
&(a->older_ctime_nsec));
if (r != ARCHIVE_OK)
return (r);
archive_read_free(a);
return;
}
+ assertUtimes("old", 10002, 0, 10002, 0);
+ assertUtimes("mid", 10001, 0, 10001, 0);
+ assertUtimes("new", 10000, 0, 10000, 0);
assertEqualIntA(m, 0, archive_matching_newer_ctime_than(m, "mid"));
/* Verify 'old' file. */
archive_read_free(a);
return;
}
+ assertUtimes("old", 10002, 0, 10002, 0);
+ assertUtimes("mid", 10001, 0, 10001, 0);
+ assertUtimes("new", 10000, 0, 10000, 0);
assertEqualIntA(m, 0, archive_matching_newer_ctime_than_w(m, L"mid"));
/* Verify 'old' file. */
archive_read_free(a);
return;
}
+ assertUtimes("old", 10002, 0, 10002, 0);
+ assertUtimes("mid", 10001, 0, 10001, 0);
+ assertUtimes("new", 10000, 0, 10000, 0);
assertEqualIntA(m, 0, archive_matching_older_ctime_than(m, "mid"));
/* Verify 'old' file. */
archive_read_free(a);
return;
}
+ assertUtimes("old", 10002, 0, 10002, 0);
+ assertUtimes("mid", 10001, 0, 10001, 0);
+ assertUtimes("new", 10000, 0, 10000, 0);
assertEqualIntA(m, 0, archive_matching_older_ctime_than_w(m, L"mid"));
/* Verify 'old' file. */