summaryrefslogtreecommitdiff
path: root/source3/lib/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/time.c')
-rw-r--r--source3/lib/time.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/time.c b/source3/lib/time.c
index 62a7016994..81e3dcfd8f 100644
--- a/source3/lib/time.c
+++ b/source3/lib/time.c
@@ -508,5 +508,8 @@ time_t get_create_time(struct stat *st)
time_t get_access_time(struct stat *st)
{
- return st->st_atime;
+ if (lp_win95_bug_compatibility())
+ return st->st_mtime;
+ else
+ return st->st_atime;
}