shadow-maint / shadow

Upstream shadow tree
Other
290 stars 228 forks source link

lib/copydir:copy_entry(): use temporary stat buffer #974

Closed ensc closed 4 months ago

ensc commented 4 months ago

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.

Issue #973