mirror of https://github.com/MidnightCommander/mc
* vfs.c (vfs_prefix_to_class): Avoid last class (localfs) that would
accept any prefix.
This commit is contained in:
parent
18d9abb15c
commit
6c2dcea9ff
|
@ -1,3 +1,8 @@
|
||||||
|
2004-11-08 Pavel S. Shirshov <me@pavelsh.pp.ru>
|
||||||
|
|
||||||
|
* vfs.c (vfs_prefix_to_class): Avoid last class (localfs) that would
|
||||||
|
accept any prefix.
|
||||||
|
|
||||||
2004-11-04 Mike Gorchak <mike@malva.ua>
|
2004-11-04 Mike Gorchak <mike@malva.ua>
|
||||||
|
|
||||||
* cpio.c (cpio_create_entry): Added initial support for the Special
|
* cpio.c (cpio_create_entry): Added initial support for the Special
|
||||||
|
|
|
@ -154,7 +154,8 @@ vfs_prefix_to_class (char *prefix)
|
||||||
{
|
{
|
||||||
struct vfs_class *vfs;
|
struct vfs_class *vfs;
|
||||||
|
|
||||||
for (vfs = vfs_list; vfs; vfs = vfs->next) {
|
/* Avoid last class (localfs) that would accept any prefix */
|
||||||
|
for (vfs = vfs_list; vfs->next; vfs = vfs->next) {
|
||||||
if (vfs->which) {
|
if (vfs->which) {
|
||||||
if ((*vfs->which) (vfs, prefix) == -1)
|
if ((*vfs->which) (vfs, prefix) == -1)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue