mirror of https://github.com/MidnightCommander/mc
Mon Oct 5 19:59:56 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
* main.c (translate_url_to_new_syntax): Translate ftp:// to an absolute path instead of a relative path (fix to "hotlist" bug reported by Andrej). This means we drop the "return to last dir" feature for ftpfs (when leaving ftpfs with ".." returns to the directory visited before entering the ftpfs).
This commit is contained in:
parent
b920b0b1c4
commit
b422d3771e
|
@ -1,3 +1,11 @@
|
|||
Mon Oct 5 19:59:56 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
|
||||
|
||||
* main.c (translate_url_to_new_syntax): Translate ftp:// to an
|
||||
absolute path instead of a relative path (fix to "hotlist" bug
|
||||
reported by Andrej). This means we drop the "return to last dir"
|
||||
feature for ftpfs (when leaving ftpfs with ".." returns to the
|
||||
directory visited before entering the ftpfs).
|
||||
|
||||
Sat Oct 3 00:54:23 1998 Norbert Warmuth <nwarmuth@privat.circular.de>
|
||||
|
||||
* gtkedit/Makefile.in (EDITOBJS): removed one wrong \\ (line
|
||||
|
|
|
@ -907,13 +907,13 @@ directory_history_add (WPanel * panel, char *s)
|
|||
}
|
||||
|
||||
/* Translate ftp://user:password@host/directory to
|
||||
#ftp:user:password@host/directory.
|
||||
/#ftp:user:password@host/directory.
|
||||
*/
|
||||
static char *
|
||||
translate_url_to_new_syntax (const char *p)
|
||||
{
|
||||
if (strncmp (p, "ftp://", 6) == 0)
|
||||
return copy_strings ("#ftp:", p + 6, 0);
|
||||
return copy_strings ("/#ftp:", p + 6, 0);
|
||||
else
|
||||
return strdup (p);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue