[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/27345] binutils/arsup.c: lstat() not available on all targ
From: |
amodra at gmail dot com |
Subject: |
[Bug binutils/27345] binutils/arsup.c: lstat() not available on all targets |
Date: |
Fri, 05 Feb 2021 01:21:26 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27345
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-02-05
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
Assignee|unassigned at sourceware dot org |amodra at gmail dot com
--- Comment #1 from Alan Modra <amodra at gmail dot com> ---
Huh, I thought it was safe to use. I looked at older binutils and saw that
lstat was used in binutils/rename.c but on looking more closely I see
#ifndef S_ISLNK
#ifdef S_IFLNK
#define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
#else
#define S_ISLNK(m) 0
#define lstat stat
#endif
#endif
So I expect we need to do the same in arsup.c.
--
You are receiving this mail because:
You are on the CC list for the bug.