vfs_default: use correct flag in vfswrap_fs_file_id
authorRalph Boehme <slow@samba.org>
Wed, 14 Aug 2019 08:06:00 +0000 (10:06 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 15 Aug 2019 23:48:41 +0000 (23:48 +0000)
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 <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_default.c

index 6580a05bbd640e144dcfa4f200784e295baddb3f..213c6ddd9cd2410ba29a808b5979da4ca435062f 100644 (file)
@@ -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;
        }