]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/lib: add update_stat_ex_itime()
authorRalph Boehme <slow@samba.org>
Tue, 25 Jun 2019 11:13:08 +0000 (13:13 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 1 Jul 2019 21:43:23 +0000 (21:43 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/proto.h
source3/lib/system.c

index 484afc959b9ebbcc93985ddb2b07ed5984e398cd..84d19e4277dfd6d96f5f4024c339a4cd7ef93cf2 100644 (file)
@@ -220,6 +220,7 @@ ssize_t sys_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *f
 int sys_fcntl_ptr(int fd, int cmd, void *arg);
 int sys_fcntl_long(int fd, int cmd, long arg);
 void update_stat_ex_mtime(struct stat_ex *dst, struct timespec write_ts);
+void update_stat_ex_itime(struct stat_ex *dst, struct timespec itime);
 void update_stat_ex_create_time(struct stat_ex *dst, struct timespec create_time);
 int sys_stat(const char *fname, SMB_STRUCT_STAT *sbuf,
             bool fake_dir_create_times);
index 486a775c8c3ff2500f96275ea54d30ef1e2e389a..d42ec3048cc4dd3731b2f456506ee917699e1f3c 100644 (file)
@@ -342,6 +342,13 @@ void update_stat_ex_create_time(struct stat_ex *dst,
        dst->st_ex_iflags &= ~ST_EX_IFLAG_CALCULATED_BTIME;
 }
 
+void update_stat_ex_itime(struct stat_ex *dst,
+                         struct timespec itime)
+{
+       dst->st_ex_itime = itime;
+       dst->st_ex_iflags &= ~ST_EX_IFLAG_CALCULATED_ITIME;
+}
+
 void init_stat_ex_from_stat (struct stat_ex *dst,
                            const struct stat *src,
                            bool fake_dir_create_times)