summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-11-27 13:17:05 +0100
committerKarolin Seeger <kseeger@samba.org>2009-12-08 09:15:07 +0100
commit1371dbf388cec245c942ef7a6fb9d5354252736a (patch)
treee5c06ef92b02ed78e883ed9a09a3e6ce721cf5d6 /source3/lib
parentabada5d6be467da4da52176c9a734e28bc8c644f (diff)
downloadsamba-1371dbf388cec245c942ef7a6fb9d5354252736a.tar.gz
s3: Pass fake_dir_create_times down to file_exist_stat, none of the callers look at the mtime
(cherry picked from commit 6d432d4db84427345c03438eb656b3f387288988)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index e11d403043d..8e04bcdb4eb 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)));