Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/copydir.c: copy_entry(): Use temporary stat buffer
There are no guarantees that fstatat() does not clobber the stat buffer on errors. Use a temporary buffer so that the following code sees correct attributes of the source entry. Link: <#973> Signed-off-by: Enrico Scholz <[email protected]> Reviewed-by: Alejandro Colomar <[email protected]> Cherry-picked-from: 0006193 ("lib/copydir:copy_entry(): use temporary stat buffer") Link: <#974> Signed-off-by: Alejandro Colomar <[email protected]>
- Loading branch information