mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Replace the readlink() branch with readlinkat() and normalize parameters: use AT_FDCWD with filename when relname is NULL. This removes duplicate code paths while preserving behavior, including the growth loop and size limits. readlinkat() is a superset of readlink(). Reviewed-by: Jan Höppner <hoeppner@linux.ibm.com> Signed-off-by: Jan Polensky <japo@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>