Ticket #2874: enter on directory named '~' goes to the home one.

Revert "Support of use ~ as home directory in hotlist."
This partially reverts commit dd9c7516a3.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2012-09-01 13:06:20 +04:00
parent 21b432b822
commit 4a0004f6c2
1 changed files with 4 additions and 9 deletions

View File

@ -152,16 +152,11 @@ vfs_canon (const char *path)
}
else
{
local = tilde_expand (path);
if (*local != PATH_SEP)
{
char *curr_dir;
char *curr_dir;
g_free (local);
curr_dir = vfs_get_current_dir ();
local = mc_build_filename (curr_dir, path, NULL);
g_free (curr_dir);
}
curr_dir = vfs_get_current_dir ();
local = mc_build_filename (curr_dir, path, NULL);
g_free (curr_dir);
}
result = vfs_canon (local);
g_free (local);