1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-18 06:04:06 +03:00
Ralph Boehme 5a9aa7aa84 smbd: add and use vfs_fget_dos_attributes()
Commit d71ef1365cdde47aeb3465699181656b0655fa04 caused a regression where the
creation date on streams wasn't updated anymore on the stream fsp.

By adding a simple wrapper vfs_fget_dos_attributes() that takes care of

- passing only the base_fsp to the VFS, so the VFS can be completely agnostic of
  all the streams related complexity like fake fds,

- propagating any updated btime from the base_fsp->fsp_name to the
  stream_fsp->fsp_name

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15126
MR: https://gitlab.com/samba-team/samba/-/merge_requests/2643

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(backported from commit 3f7d8db9945a325020e4d1574289dea9e8331c29)
[slow@samba.org: also update itime and file_id]
2022-09-06 07:54:13 +00:00
..
2012-03-24 16:41:35 +01:00
2020-01-06 01:47:30 +00:00
2017-04-07 22:52:24 +02:00
2020-10-02 21:30:33 +00:00
2020-10-24 05:57:31 +00:00
2021-03-16 17:09:31 +00:00
2020-03-20 17:11:28 +00:00
2019-02-28 13:53:40 +00:00
2017-12-05 04:58:26 +01:00
2022-01-01 01:24:21 +00:00
2020-08-17 19:35:38 +00:00
2017-03-16 20:30:19 +01:00
2021-11-11 19:08:37 +00:00