From 0ea10be92826a10eb21809e938925d40750d9483 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sat, 26 Oct 2013 23:26:02 +0000 Subject: [PATCH] SHELL: fix for #3988 git-svn-id: svn://kolibrios.org@4109 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/shell/shell.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/programs/system/shell/shell.c b/programs/system/shell/shell.c index f4bebbce2b..09d8b188bd 100644 --- a/programs/system/shell/shell.c +++ b/programs/system/shell/shell.c @@ -129,18 +129,18 @@ con_set_cursor_height(con_get_font_height()-1); ALIASES = malloc(128*1024); if (PARAM[0] == 0) - { +{ strcpy(CMD, cur_dir); strcat(CMD, ".shell"); if ( !file_check(CMD) ) strcpy(CMD, "/sys/settings/.shell"); - } +} else { if (PARAM[0] == '/') { strcpy(cur_dir, PARAM); - *strrchr(cur_dir, '/')=0; + *(strrchr(cur_dir, '/')+1)=0; } strcpy(CMD, PARAM); }