This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 4f92d7aafd3fe47e164e7f65b4479f0a892e2789 Author: anjiahao <anjia...@xiaomi.com> AuthorDate: Thu Jul 18 17:04:53 2024 +0800 modlib:Allow loading elf from block devices Signed-off-by: anjiahao <anjia...@xiaomi.com> --- libs/libc/modlib/modlib_init.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libs/libc/modlib/modlib_init.c b/libs/libc/modlib/modlib_init.c index 9b092fc583..d7162d38fb 100644 --- a/libs/libc/modlib/modlib_init.c +++ b/libs/libc/modlib/modlib_init.c @@ -70,14 +70,6 @@ static inline int modlib_fileinfo(FAR struct mod_loadinfo_s *loadinfo) return -errval; } - /* Verify that it is a regular file */ - - if (!S_ISREG(buf.st_mode)) - { - berr("ERROR: Not a regular file. mode: %d\n", buf.st_mode); - return -ENOENT; - } - /* Return some stats info of the file in the loadinfo structure */ loadinfo->filelen = buf.st_size;