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:
parent
e4aa9a970a
commit
7b246696c8
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user