]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tail: prefer readlink to lstat+S_ISLNK
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Aug 2025 19:58:06 +0000 (12:58 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 4 Aug 2025 02:48:06 +0000 (19:48 -0700)
commit2d386993e28c8cca6be7f28271268192c3cbd094
treefc9ee9e2ce5a92089f63ead1d16ce90e09f1425d
parent93805484c55ac5da2304eecb0e69356f40a89552
tail: prefer readlink to lstat+S_ISLNK

When not already calling lstat for some other reason,
prefer readlink to lstat+S_ISLNK,
as readlink does not suffer from EOVERFLOW issues.
* src/rmdir.c (main):
* src/tail.c (recheck, any_symlinks):
* src/test.c (unary_operator):
src/rmdir.c
src/tail.c
src/test.c