注释修改

This commit is contained in:
fslongjin
2022-09-07 23:30:29 +08:00
parent ee9658b5d5
commit 005b962f33
2 changed files with 3 additions and 2 deletions

View File

@ -210,7 +210,7 @@ int shell_cmd_cd(int argc, char **argv)
new_path[current_dir_len] = '/';
strcat(new_path, argv[1] + dest_offset);
int x = chdir(new_path);
printf("chdir: retval=%d\n",x);
if (x == 0) // 成功切换目录
{
free(shell_current_path);