From 7d5f6402c142645955c99d61195f22020367bfdc Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Wed, 14 Aug 2019 10:06:00 +0200 Subject: [PATCH] vfs_default: use correct flag in vfswrap_fs_file_id Luckily using the wrong flag ST_EX_IFLAG_CALCULATED_ITIME currently results in the same semantics as using the correct ST_EX_IFLAG_CALCULATED_FILE_ID, as in vfs_default the non-calculated file_id is based a non-calculated itime. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14089 RN: vfs_default: use correct flag in vfswrap_fs_file_id Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison (cherry picked from commit 442a7c9ad8b020b2e88e41fea8a911d244023cb9) --- source3/modules/vfs_default.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index 84c22bb1517..5095f65b746 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -2733,7 +2733,7 @@ static uint64_t vfswrap_fs_file_id(struct vfs_handle_struct *handle, { uint64_t file_id; - if (!(psbuf->st_ex_iflags & ST_EX_IFLAG_CALCULATED_ITIME)) { + if (!(psbuf->st_ex_iflags & ST_EX_IFLAG_CALCULATED_FILE_ID)) { return psbuf->st_ex_file_id; } -- 2.21.0