We can just use stat here, the same as is done in ar.c:open_inarch.
PR 27345
* arsup.c (ar_save): Use stat rather than lstat.
+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 (lstat (real_name, &target_stat) != 0)
+ if (stat (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