From 33601b8632edf65af4d4ab787c5615ab5c6af6fb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 27 Nov 2009 13:17:05 +0100 Subject: s3: Pass fake_dir_create_times down to file_exist_stat, none of the callers look at the mtime --- source3/lib/util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/util.c b/source3/lib/util.c index de2204074d..b074a1bd6c 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -527,13 +527,14 @@ void set_cmdline_auth_info_getpass(struct user_auth_info *auth_info) Check if a file exists - call vfs_file_exist for samba files. ********************************************************************/ -bool file_exist_stat(const char *fname,SMB_STRUCT_STAT *sbuf) +bool file_exist_stat(const char *fname,SMB_STRUCT_STAT *sbuf, + bool fake_dir_create_times) { SMB_STRUCT_STAT st; if (!sbuf) sbuf = &st; - if (sys_stat(fname, sbuf, lp_fake_dir_create_times()) != 0) + if (sys_stat(fname, sbuf, fake_dir_create_times) != 0) return(False); return((S_ISREG(sbuf->st_ex_mode)) || (S_ISFIFO(sbuf->st_ex_mode))); -- cgit