[PATCH] lsof: correct check for symbolic link
Thomas De Schampheleire
patrickdepinguin+busybox at gmail.com
Thu Jun 20 12:47:48 UTC 2013
On Thu, Jun 20, 2013 at 11:13 AM, Laurent Bercot
<ska-dietlibc at skarnet.org> wrote:
>> its existence does not guarantee it will be correctly populated. in his case,
>> he's seeing DT_UNKNOWN in the field which means the lstat fallback is needed.
> Hence the need for a build-time test to *run* a program that creates a
> few file types in a temp directory and then checks whether the corresponding
> d_type matches. This the point I was making to Rick a few days ago.
Maybe I'm missing something here. How can you run a program at
build-time, in a cross-compiler environment? At that moment you don't
have access to the target, and you can't rely on the outcome of a
host-test to give information on the behavior of the target... (even
regardless of the filesystem argument Ralf raised).
More information about the busybox