Shell: cd command fixed

git-svn-id: svn://kolibrios.org@2323 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Albom
2011-12-15 18:06:01 +00:00
parent 57c28de885
commit 94572b7fe1
4 changed files with 6 additions and 3 deletions
+3
View File
@@ -37,10 +37,13 @@ if ( '/' == dir[0])
else
{
strcpy(temp, cur_dir);
if (cur_dir[strlen(cur_dir)-1] != '/')
strcat(temp, "/");
strcat(temp, dir);
if ( dir_check(temp) )
{
strcpy(cur_dir, temp);
return TRUE;
}