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

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


The following commit(s) were added to refs/heads/master by this push:
     new e791a273d7d fs/vfs: initialize the path suffix after pseudo-file 
creation
e791a273d7d is described below

commit e791a273d7d53a59e0a2327531b7ab58712b244e
Author: jingfei <[email protected]>
AuthorDate: Sun Nov 29 03:53:20 2026 +0800

    fs/vfs: initialize the path suffix after pseudo-file creation
    
    A newly created pseudo-file has no mountpoint-relative suffix. Set the
    search descriptor to that state before the path permission check, so
    creation can proceed when CONFIG_FS_PERMISSION is enabled.
    
    Signed-off-by: jingfei <[email protected]>
---
 fs/vfs/fs_open.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/vfs/fs_open.c b/fs/vfs/fs_open.c
index ee542187bb2..df7831394bc 100644
--- a/fs/vfs/fs_open.c
+++ b/fs/vfs/fs_open.c
@@ -172,6 +172,8 @@ static int file_vopen(FAR struct file *filep, FAR const 
char *path,
 
           goto errout_with_search;
         }
+
+      desc.relpath = "";
     }
 
   /* Get the search results */

Reply via email to