Fix error in strrch()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3501 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
7273287a4a
commit
75ce6ddea3
@ -240,7 +240,8 @@ int cmd_cd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
|
|||||||
|
|
||||||
/* Set the new workding directory */
|
/* Set the new workding directory */
|
||||||
|
|
||||||
if (chdir(path) != 0)
|
ret = chdir(path);
|
||||||
|
if (ret != 0)
|
||||||
{
|
{
|
||||||
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "chdir", NSH_ERRNO);
|
nsh_output(vtbl, g_fmtcmdfailed, argv[0], "chdir", NSH_ERRNO);
|
||||||
ret = ERROR;
|
ret = ERROR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user