pkarashchenko commented on code in PR #10969:
URL: https://github.com/apache/nuttx/pull/10969#discussion_r1363604159


##########
libs/libc/misc/lib_glob.c:
##########
@@ -247,7 +247,8 @@ static int do_glob(FAR char *buf, size_t pos, int type, FAR 
char *pat,
 
       if (!type && lstat(buf, &st))
         {
-          if (errno != ENOENT && (errfunc(buf, errno) || (flags & GLOB_ERR)))
+          if (get_errno() != ENOENT &&
+              (errfunc(buf, get_errno() || (flags & GLOB_ERR)))

Review Comment:
   ```suggestion
                 (errfunc(buf, get_errno()) || (flags & GLOB_ERR) != 0))
   ```



-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to