diff options
author | Jeremy Allison <jra@samba.org> | 2009-08-12 13:00:54 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-08-12 13:00:54 -0700 |
commit | d6270df748dcfd8d5a02c328518c2332da8fbed5 (patch) | |
tree | 7e921433a6e293f54fac3c0405b42be36ff7ac78 /source3/modules | |
parent | 1ddd10b56aea663b06768638d83e3bdcfea9ec89 (diff) | |
download | samba-d6270df748dcfd8d5a02c328518c2332da8fbed5.tar.gz samba-d6270df748dcfd8d5a02c328518c2332da8fbed5.tar.bz2 samba-d6270df748dcfd8d5a02c328518c2332da8fbed5.zip |
Add "store create time" parameter (docs to follow)
that stores the create time in the user.DosTimestamps EA.
Jeremy.
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_default.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 2ee2fd1249..a793b337a8 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -817,6 +817,15 @@ static int vfswrap_ntimes(vfs_handle_struct *handle, errno = ENOSYS; result = -1; #endif + + if (!null_timespec(ft->create_time) && + lp_store_create_time(SNUM(handle->conn))) { + set_create_timespec_ea(handle->conn, + NULL, + smb_fname, + ft->create_time); + } + out: END_PROFILE(syscall_ntimes); return result; |