From b422d3771e2c59eea27d7be3c6428a59247ccf56 Mon Sep 17 00:00:00 2001 From: Norbert Warmuth Date: Mon, 5 Oct 1998 18:07:25 +0000 Subject: [PATCH] Mon Oct 5 19:59:56 1998 Norbert Warmuth * 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). --- src/ChangeLog | 8 ++++++++ src/main.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 0bb0f1f19..12d087a1d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,11 @@ +Mon Oct 5 19:59:56 1998 Norbert Warmuth + + * 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 * gtkedit/Makefile.in (EDITOBJS): removed one wrong \\ (line diff --git a/src/main.c b/src/main.c index 758d054f3..525352f0b 100644 --- a/src/main.c +++ b/src/main.c @@ -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); }