1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-13 08:59:08 +03:00

Refactor the use of create_time and change time to go

through functions. Will aid in making us pass RAW-SETFILEINFO.
Jeremy.
This commit is contained in:
Jeremy Allison
2009-08-10 15:07:53 -07:00
parent 303e49b2f1
commit c9dca82ed7
6 changed files with 74 additions and 28 deletions

View File

@ -456,7 +456,7 @@ static struct timespec calc_create_time_stat_ex(const struct stat_ex *st)
use the best approximation.
****************************************************************************/
static void get_create_timespec(const struct stat *pst, struct stat_ex *dst)
static void make_create_timespec(const struct stat *pst, struct stat_ex *dst)
{
if (S_ISDIR(pst->st_mode) && lp_fake_dir_create_times()) {
dst->st_ex_btime.tv_sec = 315493200L; /* 1/1/1980 */
@ -518,7 +518,7 @@ static void init_stat_ex_from_stat (struct stat_ex *dst,
dst->st_ex_atime = get_atimespec(src);
dst->st_ex_mtime = get_mtimespec(src);
dst->st_ex_ctime = get_ctimespec(src);
get_create_timespec(src, dst);
make_create_timespec(src, dst);
dst->st_ex_blksize = src->st_blksize;
dst->st_ex_blocks = src->st_blocks;