1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

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 <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2020-03-26 14:42:39 +01:00 committed by Ralph Boehme
parent e4aa9a970a
commit 7b246696c8

View 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.