summaryrefslogtreecommitdiff
path: root/source4/torture/torture_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/torture_util.c')
-rw-r--r--source4/torture/torture_util.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/source4/torture/torture_util.c b/source4/torture/torture_util.c
index 57add86602..96579999c3 100644
--- a/source4/torture/torture_util.c
+++ b/source4/torture/torture_util.c
@@ -114,13 +114,14 @@ int create_complex_file(struct cli_state *cli, TALLOC_CTX *mem_ctx, const char *
printf("Failed to setup EAs\n");
}
- /* make sure all the timestamps aren't the same */
+ /* make sure all the timestamps aren't the same, and are also
+ in different DST zones*/
setfile.generic.level = RAW_SFILEINFO_SETATTRE;
setfile.generic.file.fnum = fnum;
- setfile.setattre.in.create_time = t + 60;
- setfile.setattre.in.access_time = t + 120;
- setfile.setattre.in.write_time = t + 180;
+ setfile.setattre.in.create_time = t + 9*30*24*60*60;
+ setfile.setattre.in.access_time = t + 6*30*24*60*60;
+ setfile.setattre.in.write_time = t + 3*30*24*60*60;
status = smb_raw_setfileinfo(cli->tree, &setfile);
if (!NT_STATUS_IS_OK(status)) {
@@ -212,14 +213,6 @@ BOOL wire_bad_flags(WIRE_STRING *str, int flags)
}
/*
- return a talloced string representing a time_t for human consumption
-*/
-const char *time_string(TALLOC_CTX *mem_ctx, time_t t)
-{
- return talloc_strdup(mem_ctx, http_timestring(mem_ctx, t));
-}
-
-/*
check if 2 NTTIMEs are equal
*/
BOOL nt_time_equal(NTTIME *t1, NTTIME *t2)