This is an automated email from the ASF dual-hosted git repository.

GUIDINGLI pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit e73947e9e7b37900461a537c60fa38e1a78b410d
Author: zhengyu16 <[email protected]>
AuthorDate: Mon Sep 29 16:33:30 2025 +0800

    fs/inode: format link path before resolving link target
    
    When resolving a symbolic link target, call the public inode_search()
    instead of the internal _inode_search() so that the link target path is
    first formatted (leading '/' handling and relative-path conversion)
    before the lookup.  This ensures link targets are resolved through the
    same normalization path as ordinary lookups.
    
    Signed-off-by: zhengyu16 <[email protected]>
---
 fs/inode/fs_inodesearch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/inode/fs_inodesearch.c b/fs/inode/fs_inodesearch.c
index 8793a4ae0c0..8badfe9a374 100644
--- a/fs/inode/fs_inodesearch.c
+++ b/fs/inode/fs_inodesearch.c
@@ -168,7 +168,7 @@ static int _inode_linktarget(FAR struct inode *inode,
 
       /* Look up inode associated with the target of the symbolic link */
 
-      ret = _inode_search(desc);
+      ret = inode_search(desc);
       if (ret < 0)
         {
           break;

Reply via email to