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/lib/sysquotas.c | |
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/lib/sysquotas.c')
-rw-r--r-- | source3/lib/sysquotas.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/lib/sysquotas.c b/source3/lib/sysquotas.c index 7eed0cadf9..d9bdbf402a 100644 --- a/source3/lib/sysquotas.c +++ b/source3/lib/sysquotas.c @@ -60,7 +60,7 @@ static int sys_path_to_bdev(const char *path, char **mntpath, char **bdev, char (*bdev) = NULL; (*fs) = NULL; - if ( sys_stat(path, &S) == -1 ) + if ( sys_stat(path, &S, lp_fake_dir_create_times()) == -1 ) return (-1); devno = S.st_ex_dev ; @@ -71,7 +71,8 @@ static int sys_path_to_bdev(const char *path, char **mntpath, char **bdev, char } while ((mnt = getmntent(fp))) { - if ( sys_stat(mnt->mnt_dir,&S) == -1 ) + if ( sys_stat(mnt->mnt_dir, &S, lp_fake_dir_create_times()) + == -1 ) continue ; if (S.st_ex_dev == devno) { @@ -114,7 +115,7 @@ static int sys_path_to_bdev(const char *path, char **mntpath, char **bdev, char /* find the block device file */ - if ((ret=sys_stat(path, &S))!=0) { + if ((ret=sys_stat(path, &S, lp_fake_dir_create_times()))!=0) { return ret; } |