Skip to content

Commit

Permalink
If file name too long,can show next dir and no error info
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangwenjian111 authored and xiaoxiang781216 committed Jan 18, 2025
1 parent d139947 commit 63ba591
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion nshlib/nsh_fscmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ static int ls_recursive(FAR struct nsh_vtbl_s *vtbl, FAR const char *dirpath,
free(newpath);
}

return ret;
return OK;
}

#endif /* !CONFIG_NSH_DISABLE_LS */
Expand Down
1 change: 0 additions & 1 deletion nshlib/nsh_fsutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ int nsh_foreach_direntry(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
}

#endif
nsh_error(vtbl, g_fmtcmdfailed, cmd, "opendir", NSH_ERRNO);
return ERROR;
}

Expand Down

0 comments on commit 63ba591

Please sign in to comment.