summaryrefslogtreecommitdiff
path: root/source3/lib/system.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-08-10 15:07:53 -0700
committerJeremy Allison <jra@samba.org>2009-08-10 15:07:53 -0700
commitc9dca82ed7757f4745edf6ee6048bd94d86c4dbc (patch)
tree39022ef781029f7de9e9948f644e071f11347e3b /source3/lib/system.c
parent303e49b2f1d3cc437c399fb8d59b8eb60e86f86c (diff)
downloadsamba-c9dca82ed7757f4745edf6ee6048bd94d86c4dbc.tar.gz
samba-c9dca82ed7757f4745edf6ee6048bd94d86c4dbc.tar.bz2
samba-c9dca82ed7757f4745edf6ee6048bd94d86c4dbc.zip
Refactor the use of create_time and change time to go
through functions. Will aid in making us pass RAW-SETFILEINFO. Jeremy.
Diffstat (limited to 'source3/lib/system.c')
-rw-r--r--source3/lib/system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index 6a4f5d5413..2c6894ff94 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -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;