Skip to content

Commit 63ba591

Browse files
zhangwenjian111xiaoxiang781216
authored andcommitted
If file name too long,can show next dir and no error info
1 parent d139947 commit 63ba591

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

nshlib/nsh_fscmds.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ static int ls_recursive(FAR struct nsh_vtbl_s *vtbl, FAR const char *dirpath,
633633
free(newpath);
634634
}
635635

636-
return ret;
636+
return OK;
637637
}
638638

639639
#endif /* !CONFIG_NSH_DISABLE_LS */

nshlib/nsh_fsutils.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ int nsh_foreach_direntry(FAR struct nsh_vtbl_s *vtbl, FAR const char *cmd,
453453
}
454454

455455
#endif
456-
nsh_error(vtbl, g_fmtcmdfailed, cmd, "opendir", NSH_ERRNO);
457456
return ERROR;
458457
}
459458

0 commit comments

Comments
 (0)