Re: [RFE][PATCH] Allow cd smb://, cd sh://, cd mc:// vfs requests
- From: buc <buc odusz so-cdu ru>
- To: Jindrich Novy <jnovy redhat com>
- Cc: MC Devel <mc-devel gnome org>
- Subject: Re: [RFE][PATCH] Allow cd smb://, cd sh://, cd mc:// vfs requests
- Date: Mon, 07 Feb 2005 18:14:26 +0300
Jindrich Novy wrote:
<>Hello Dmitry,
I only wanted to propose a more intuitive way to access various VFSes to
the most of users and to let them use the functionality ASAP. Some
further work to let them make their life with mc more comfortable is
welcome so if you have any pending patches similar to this problem, no
one will be angry if you send them here ;)
Cheers,
Jindrich
My old patch attached. It locates the place where something should be
done now, not for ftp only...
--
Dmitry Butskoj <buc citadel stu neva ru>
Saint-Petersburg, Russia
Red Hat Certified Engineer 809003662809495
diff -Nrbu mc-4.6.0/src/util.c mc-4.6.0-OK/src/util.c
--- mc-4.6.0/src/util.c 2003-11-13 18:25:13.000000000 +0300
+++ mc-4.6.0-OK/src/util.c 2003-11-13 18:22:23.000000000 +0300
@@ -186,6 +186,13 @@
*d++ = '.';
*d++ = '/';
}
+ else if (*s == '/' && s[1] == '#' &&
+ !strncmp (s, "/#ftp:", 6)
+ ) {
+ strcpy (d, "ftp://");
+ s += 6;
+ d += 6;
+ }
for (; *s; s++, d++) {
switch (*s) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]