From 290ef772540af90d49b5fe8c61f86dafbc0008de Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 6 Aug 2024 19:48:16 +0200 Subject: [PATCH] Improved handling of dead symbolic links in aaip_get_attr_list() --- libisofs/aaip-os-linux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libisofs/aaip-os-linux.c b/libisofs/aaip-os-linux.c index 6a4e1ae..56d9bf4 100644 --- a/libisofs/aaip-os-linux.c +++ b/libisofs/aaip-os-linux.c @@ -451,7 +451,8 @@ try_lfa_flags:; #ifdef Libisofs_with_aaip_lfa_flagS if(!(flag & 64)) { - ret= aaip_get_lfa_flags(path, &lfa_flags, &max_bit, &os_errno, 0); + /* ( aaip_get_lfa_flags() does not gracefully handle dead symbolic links) */ + ret= iso_local_get_lfa_flags(path, &lfa_flags, &max_bit, &os_errno, 0); if(ret == 1 || ret == 2) { ret= aaip_encode_lfa_flags(lfa_flags, lfa_value, &lfa_length, 0); if(ret > 0) {