mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 09:19:24 +03:00
Use new-style VFS prefixes.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
22c1d05f6b
commit
8895615aca
@ -42,7 +42,7 @@
|
|||||||
* Derived from ftpfs.c
|
* Derived from ftpfs.c
|
||||||
* Read README.fish for protocol specification.
|
* Read README.fish for protocol specification.
|
||||||
*
|
*
|
||||||
* Syntax of path is: \verbatim /#sh:user@host[:Cr]/path \endverbatim
|
* Syntax of path is: \verbatim sh://user@host[:Cr]/path \endverbatim
|
||||||
* where C means you want compressed connection,
|
* where C means you want compressed connection,
|
||||||
* and r means you want to use rsh
|
* and r means you want to use rsh
|
||||||
*
|
*
|
||||||
@ -546,7 +546,7 @@ fish_open_archive_int (struct vfs_class *me, struct vfs_s_super *super)
|
|||||||
vfs_print_message (_("fish: Connected, home %s."), super->path_element->path);
|
vfs_print_message (_("fish: Connected, home %s."), super->path_element->path);
|
||||||
#if 0
|
#if 0
|
||||||
super->name =
|
super->name =
|
||||||
g_strconcat ("/#sh:", super->path_element->user, "@", super->path_element->host, "/",
|
g_strconcat ("sh://", super->path_element->user, "@", super->path_element->host, "/",
|
||||||
(char *) NULL);
|
(char *) NULL);
|
||||||
#else
|
#else
|
||||||
super->name = g_strdup (PATH_SEP_STR);
|
super->name = g_strdup (PATH_SEP_STR);
|
||||||
|
@ -54,11 +54,11 @@ What to do with this?
|
|||||||
|
|
||||||
* NOTE: Usage of tildes is deprecated, consider:
|
* NOTE: Usage of tildes is deprecated, consider:
|
||||||
* \verbatim
|
* \verbatim
|
||||||
cd /#ftp:pavel@hobit
|
cd ftp//:pavel@hobit
|
||||||
cd ~
|
cd ~
|
||||||
\endverbatim
|
\endverbatim
|
||||||
* And now: what do I want to do? Do I want to go to /home/pavel or to
|
* And now: what do I want to do? Do I want to go to /home/pavel or to
|
||||||
* /#ftp:hobit/home/pavel? I think first has better sense...
|
* ftp://hobit/home/pavel? I think first has better sense...
|
||||||
*
|
*
|
||||||
\verbatim
|
\verbatim
|
||||||
{
|
{
|
||||||
|
@ -160,7 +160,7 @@ undelfs_get_path (const vfs_path_t * vpath, char **fsname, char **file)
|
|||||||
path_element = vfs_path_get_by_index (vpath, -1);
|
path_element = vfs_path_get_by_index (vpath, -1);
|
||||||
|
|
||||||
/* To look like filesystem, we have virtual directories
|
/* To look like filesystem, we have virtual directories
|
||||||
/#undel:XXX, which have no subdirectories. XXX is replaced with
|
undel://XXX, which have no subdirectories. XXX is replaced with
|
||||||
hda5, sdb8 etc, which is assumed to live under /dev.
|
hda5, sdb8 etc, which is assumed to live under /dev.
|
||||||
-- pavel@ucw.cz */
|
-- pavel@ucw.cz */
|
||||||
|
|
||||||
@ -168,7 +168,7 @@ undelfs_get_path (const vfs_path_t * vpath, char **fsname, char **file)
|
|||||||
|
|
||||||
*fsname = NULL;
|
*fsname = NULL;
|
||||||
|
|
||||||
if (strncmp (dirname, "/#undel", 7))
|
if (strncmp (dirname, "undel://", 8) != 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
dirname += 8;
|
dirname += 8;
|
||||||
@ -202,7 +202,6 @@ undelfs_get_path (const vfs_path_t * vpath, char **fsname, char **file)
|
|||||||
}
|
}
|
||||||
*file = g_strdup ("");
|
*file = g_strdup ("");
|
||||||
*fsname = g_strconcat ("/dev/", dirname, (char *) NULL);
|
*fsname = g_strconcat ("/dev/", dirname, (char *) NULL);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user