Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Sep 27 07:54:34 UTC 2024 on atb-devel-224
status = cli_setatr(cli, full_path, mode, mtime);
if (!NT_STATUS_IS_OK(status)) {
- d_printf("Error setting attributes on remote file %s: %s\n",
- full_path, nt_errstr(status));
+ char *timestr = timestring(talloc_tos(), mtime);
+ d_printf("Error setting attributes (mode: %3o, mtime: %s) on "
+ "remote file %s: %s\n",
+ mode & 0777,
+ timestr,
+ full_path,
+ nt_errstr(status));
+ TALLOC_FREE(timestr);
err = 1;
}