mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
Revert "Ticket #1605: Incorrect parsing FTP-string"
This reverts commit cf8ae36637
.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
2c42692c7e
commit
8689d6a925
@ -279,7 +279,7 @@ struct vfs_class *
|
||||
vfs_split (char *path, char **inpath, char **op)
|
||||
{
|
||||
char *semi;
|
||||
char *slash, *at_chr;
|
||||
char *slash;
|
||||
struct vfs_class *ret;
|
||||
|
||||
if (!path)
|
||||
@ -289,12 +289,7 @@ vfs_split (char *path, char **inpath, char **op)
|
||||
if (!semi || !path_magic(path))
|
||||
return NULL;
|
||||
|
||||
at_chr = strrchr (semi, '@');
|
||||
if (at_chr)
|
||||
slash = strchr (at_chr, PATH_SEP);
|
||||
else
|
||||
slash = strchr (semi, PATH_SEP);
|
||||
|
||||
slash = strchr (semi, PATH_SEP);
|
||||
*semi = 0;
|
||||
|
||||
if (op)
|
||||
|
Loading…
Reference in New Issue
Block a user