mirror of https://github.com/MidnightCommander/mc
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:
parent
21b432b822
commit
4a0004f6c2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue