Shell: some small fixes

git-svn-id: svn://kolibrios.org@2615 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Albom
2012-04-15 07:59:47 +00:00
parent ba80d953e5
commit f0c414780c
4 changed files with 22 additions and 2 deletions
+12
View File
@@ -25,16 +25,28 @@ if ( '/' == file[0])
if ( !file_check(temp) )
{
#if LANG_ENG
printf (" File not found!\n\r");
#elif LANG_RUS
printf (" ” ©« ­¥ ­ ©¤¥­!\n\r");
#endif
return FALSE;
}
}
else
{
strcpy(temp, cur_dir);
if (temp[strlen(temp)-1] != '/')
strcat(temp, "/"); // add slash
strcat(temp, file);
if ( !file_check(temp) )
{
#if LANG_ENG
printf (" File not found!\n\r");
#elif LANG_RUS
printf (" ” ©« ­¥ ­ ©¤¥­!\n\r");
#endif
return FALSE;
}
}