Skip to content

Fix bug in shadow_copy2 listing snapshotted dirs with shadow:fixinodes

Since 4.14 we call openat_pathref_fsp() for every directory entry which in 4.16 and below still does a stat() vs fstat() dev/ino comparison. SInce the stat info in this case comes from SMB_VFS_READDIR(), as this is not implemented in shadow_copy2, the module can't update the inode number for the path based stat (provided via fstatat() in vfswrap_readdir()) so it won't match the subsequent fstat() which is handled by shadow_copy2.

https://bugzilla.samba.org/show_bug.cgi?id=15035

Edited by Ralph Böhme

Merge request reports