Skip to content

Commit 86cb5ea

Browse files
committed
Revert "PR27345, binutils/arsup.c: lstat() not available on all targets"
This reverts commit c0034ac. 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.
1 parent c0034ac commit 86cb5ea

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

binutils/ChangeLog

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
2021-02-05 Alan Modra <[email protected]>
2-
3-
PR 27345
4-
* arsup.c (ar_save): Use stat rather than lstat.
5-
61
2021-02-03 Alan Modra <[email protected]>
72

83
PR 27270

binutils/arsup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ ar_save (void)
357357
#endif
358358
bfd_close (obfd);
359359

360-
if (stat (real_name, &target_stat) != 0)
360+
if (lstat (real_name, &target_stat) != 0)
361361
{
362362
/* The temp file created in ar_open has mode 0600 as per mkstemp.
363363
Create the real empty output file here so smart_rename will

0 commit comments

Comments
 (0)