]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: use pull_long_date_full_timespec()
authorRalph Boehme <slow@samba.org>
Tue, 3 Dec 2019 08:55:47 +0000 (09:55 +0100)
committerJeremy Allison <jra@samba.org>
Fri, 6 Dec 2019 00:17:36 +0000 (00:17 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=7771

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/trans2.c

index aa3e968c5c710f2376a7944bae7ef5d23ad63783..ed5a52beb86916803eb0a4fc47fa6efc3556723b 100644 (file)
@@ -7799,16 +7799,16 @@ static NTSTATUS smb_set_file_basic_info(connection_struct *conn,
        }
 
        /* create time */
-       ft.create_time = interpret_long_date(pdata);
+       ft.create_time = pull_long_date_full_timespec(pdata);
 
        /* access time */
-       ft.atime = interpret_long_date(pdata+8);
+       ft.atime = pull_long_date_full_timespec(pdata+8);
 
        /* write time. */
-       ft.mtime = interpret_long_date(pdata+16);
+       ft.mtime = pull_long_date_full_timespec(pdata+16);
 
        /* change time. */
-       ft.ctime = interpret_long_date(pdata+24);
+       ft.ctime = pull_long_date_full_timespec(pdata+24);
 
        DEBUG(10, ("smb_set_file_basic_info: file %s\n",
                   smb_fname_str_dbg(smb_fname)));
@@ -8134,8 +8134,8 @@ static NTSTATUS smb_set_file_unix_basic(connection_struct *conn,
                size |= (((off_t)IVAL(pdata,4)) << 32);
        }
 
-       ft.atime = interpret_long_date(pdata+24); /* access_time */
-       ft.mtime = interpret_long_date(pdata+32); /* modification_time */
+       ft.atime = pull_long_date_full_timespec(pdata+24); /* access_time */
+       ft.mtime = pull_long_date_full_timespec(pdata+32); /* modification_time */
        set_owner = (uid_t)IVAL(pdata,40);
        set_grp = (gid_t)IVAL(pdata,48);
        raw_unixmode = IVAL(pdata,84);