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/registry/regfio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/registry') diff --git a/source3/registry/regfio.c b/source3/registry/regfio.c index 38411d8556..42c2475a2b 100644 --- a/source3/registry/regfio.c +++ b/source3/registry/regfio.c @@ -45,7 +45,7 @@ static int write_block( REGF_FILE *file, prs_struct *ps, uint32 offset ) /* check for end of file */ - if ( sys_fstat( file->fd, &sbuf ) ) { + if (sys_fstat(file->fd, &sbuf, lp_fake_dir_create_times())) { DEBUG(0,("write_block: stat() failed! (%s)\n", strerror(errno))); return -1; } @@ -79,7 +79,7 @@ static int read_block( REGF_FILE *file, prs_struct *ps, uint32 file_offset, uint /* check for end of file */ - if ( sys_fstat( file->fd, &sbuf ) ) { + if (sys_fstat(file->fd, &sbuf, lp_fake_dir_create_times())) { DEBUG(0,("read_block: stat() failed! (%s)\n", strerror(errno))); return -1; } @@ -1429,7 +1429,7 @@ static REGF_HBIN* regf_hbin_allocate( REGF_FILE *file, uint32 block_size ) memcpy( hbin->header, "hbin", sizeof(HBIN_HDR_SIZE) ); - if ( sys_fstat( file->fd, &sbuf ) ) { + if (sys_fstat(file->fd, &sbuf, lp_fake_dir_create_times())) { DEBUG(0,("regf_hbin_allocate: stat() failed! (%s)\n", strerror(errno))); return NULL; } -- cgit