diff options
author | Volker Lendecke <vl@samba.org> | 2009-11-27 12:42:39 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-11-29 11:22:01 +0100 |
commit | 44ce5603ddbb1b9d75bfff58e40e7f1ea2821c67 (patch) | |
tree | bd10abc110d1f33352b102f0d3c0df83c1a88774 /source3/passdb | |
parent | b973c5083699ad2b22c72fafe5c4b77f1f4eeccb (diff) | |
download | samba-44ce5603ddbb1b9d75bfff58e40e7f1ea2821c67.tar.gz samba-44ce5603ddbb1b9d75bfff58e40e7f1ea2821c67.tar.bz2 samba-44ce5603ddbb1b9d75bfff58e40e7f1ea2821c67.zip |
s3: Pass the "fake dir create times" parameter to sys_*stat
Step 0 to restore it as a per-share paramter
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_smbpasswd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/passdb/pdb_smbpasswd.c b/source3/passdb/pdb_smbpasswd.c index cac95c40a9..1595d65c2e 100644 --- a/source3/passdb/pdb_smbpasswd.c +++ b/source3/passdb/pdb_smbpasswd.c @@ -276,7 +276,8 @@ Error was %s\n", pfile, strerror(errno) )); * prevent infinate loops. JRA. */ - if (sys_stat(pfile,&sbuf1) != 0) { + if (sys_stat(pfile, &sbuf1, + lp_fake_dir_create_times()) != 0) { DEBUG(0, ("startsmbfilepwent_internal: unable to stat file %s. \ Error was %s\n", pfile, strerror(errno))); pw_file_unlock(fileno(fp), lock_depth); @@ -284,7 +285,8 @@ Error was %s\n", pfile, strerror(errno))); return NULL; } - if (sys_fstat(fileno(fp),&sbuf2) != 0) { + if (sys_fstat(fileno(fp), &sbuf2, + lp_fake_dir_create_times()) != 0) { DEBUG(0, ("startsmbfilepwent_internal: unable to fstat file %s. \ Error was %s\n", pfile, strerror(errno))); pw_file_unlock(fileno(fp), lock_depth); |