This reverts commit
c0034ac596db89dfb5fa007a63488ad7af555fe9.
Given the problems associated with this patch and the others intended to fix the smart_rename CVE, the decision has been taken to revert the patches for the 2.36.1 point release.
-2021-02-05 Alan Modra <amodra@gmail.com>
-
- PR 27345
- * arsup.c (ar_save): Use stat rather than lstat.
-
2021-02-03 Alan Modra <amodra@gmail.com>
PR 27270
#endif
bfd_close (obfd);
- if (stat (real_name, &target_stat) != 0)
+ if (lstat (real_name, &target_stat) != 0)
{
/* The temp file created in ar_open has mode 0600 as per mkstemp.
Create the real empty output file here so smart_rename will