From 44ce5603ddbb1b9d75bfff58e40e7f1ea2821c67 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 27 Nov 2009 12:42:39 +0100 Subject: s3: Pass the "fake dir create times" parameter to sys_*stat Step 0 to restore it as a per-share paramter --- source3/client/client.c | 2 +- source3/client/clitar.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'source3/client') diff --git a/source3/client/client.c b/source3/client/client.c index ca2f9a8842..187fd88743 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -3439,7 +3439,7 @@ static int cmd_newer(void) SMB_STRUCT_STAT sbuf; ok = next_token_talloc(ctx, &cmd_ptr,&buf,NULL); - if (ok && (sys_stat(buf,&sbuf) == 0)) { + if (ok && (sys_stat(buf, &sbuf, lp_fake_dir_create_times()) == 0)) { newer_than = convert_timespec_to_time_t(sbuf.st_ex_mtime); DEBUG(1,("Getting files newer than %s", time_to_asc(newer_than))); diff --git a/source3/client/clitar.c b/source3/client/clitar.c index d973329427..cf5eb6782a 100644 --- a/source3/client/clitar.c +++ b/source3/client/clitar.c @@ -404,7 +404,7 @@ static void dotareof(int f) (void) dozerobuf(f, TBLOCK); (void) dozerobuf(f, TBLOCK); - if (sys_fstat(f, &stbuf) == -1) { + if (sys_fstat(f, &stbuf, lp_fake_dir_create_times()) == -1) { DEBUG(0, ("Couldn't stat file handle\n")); return; } @@ -1792,7 +1792,8 @@ int tar_parseargs(int argc, char *argv[], const char *Optarg, int Optind) } else { SMB_STRUCT_STAT stbuf; - if (sys_stat(argv[Optind], &stbuf) == 0) { + if (sys_stat(argv[Optind], &stbuf, + lp_fake_dir_create_times()) == 0) { newer_than = convert_timespec_to_time_t( stbuf.st_ex_mtime); DEBUG(1,("Getting files newer than %s", -- cgit