mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-11 18:32:53 +03:00
custom_canonicalize_pathname(): Removed old-style path handling.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
32a9f8257d
commit
2044d8f853
@ -695,26 +695,8 @@ custom_canonicalize_pathname (char *path, CANON_PATH_FLAGS flags)
|
||||
}
|
||||
|
||||
if (*s == PATH_SEP)
|
||||
{
|
||||
/* skip VFS prefix */
|
||||
char *path_sep;
|
||||
struct vfs_class *vclass;
|
||||
break;
|
||||
|
||||
/* old parser mode */
|
||||
if (*(s + 1) != '#')
|
||||
break;
|
||||
|
||||
path_sep = strchr (s + 1, PATH_SEP);
|
||||
if (path_sep != NULL)
|
||||
*path_sep = '\0';
|
||||
|
||||
vclass = vfs_prefix_to_class (s + 2);
|
||||
if (path_sep != NULL)
|
||||
*path_sep = PATH_SEP;
|
||||
|
||||
if (vclass == NULL)
|
||||
break;
|
||||
}
|
||||
s--;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user