FelipeMdeO opened a new pull request, #19212: URL: https://github.com/apache/nuttx/pull/19212
*Note: Please adhere to [Contributing Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).* ## Summary *Fix the VFS link() build coverage when CONFIG_PSEUDOFS_SOFTLINKS is disabled. link() is declared unconditionally in unistd.h, but fs_link.c was only built when pseudo filesystem softlinks were enabled. This could leave applications that reference link() with an undefined symbol when softlinks are disabled. This change builds fs_link.c unconditionally and keeps only fs_symlink.c and fs_readlink.c behind CONFIG_PSEUDOFS_SOFTLINKS. When softlinks are enabled, link() keeps the existing behavior of delegating to symlink(). When softlinks are disabled, link() returns -1 with errno set to ENOSYS.* ## Impact *Applications can safely reference link() regardless of CONFIG_PSEUDOFS_SOFTLINKS. Configurations without pseudo filesystem softlinks now get a defined link() symbol that reports the operation as unsupported instead of failing at link time. Existing configurations with CONFIG_PSEUDOFS_SOFTLINKS enabled keep the same runtime behavior. No hardware-specific behavior, documentation, or security impact is* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
