libsmb: Call cli_setpathinfo_ext() instead of .._basic()
authorVolker Lendecke <vl@samba.org>
Thu, 26 Mar 2020 13:42:39 +0000 (14:42 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 8 Apr 2020 14:46:40 +0000 (14:46 +0000)
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 <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/libsmb/libsmb_file.c

index 7e8916e61b53dfa620662f43300fc1078727bcfd..e4baa3b6adc00cf66f44652c4631aa6f294e1459 100644 (file)
@@ -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.