From: Volker Lendecke Date: Thu, 26 Mar 2020 13:42:39 +0000 (+0100) Subject: libsmb: Call cli_setpathinfo_ext() instead of .._basic() X-Git-Tag: ldb-2.2.0~947 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7b246696c89c4d3567a1861f438955dc775e82b2;p=thirdparty%2Fsamba.git libsmb: Call cli_setpathinfo_ext() instead of .._basic() Yes, the formatting is not according to README.Coding, but that's a patch for another day. Also, this is no functional change: All callers so far either set .tv_sec only or set .tv_nsec to SAMBA_UTIME_OMIT. Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/libsmb/libsmb_file.c b/source3/libsmb/libsmb_file.c index 7e8916e61b5..e4baa3b6adc 100644 --- a/source3/libsmb/libsmb_file.c +++ b/source3/libsmb/libsmb_file.c @@ -605,12 +605,12 @@ SMBC_setatr(SMBCCTX * context, SMBCSRV *srv, char *path, * attributes manipulated. */ if (srv->no_pathinfo || - !NT_STATUS_IS_OK(cli_setpathinfo_basic(srv->cli, path, - create_time.tv_sec, - access_time.tv_sec, - write_time.tv_sec, - change_time.tv_sec, - mode))) { + !NT_STATUS_IS_OK(cli_setpathinfo_ext(srv->cli, path, + create_time, + access_time, + write_time, + change_time, + mode))) { /* * setpathinfo is not supported; go to plan B.