* vfs.c (vfs_prefix_to_class): Avoid last class (localfs) that would

accept any prefix.
This commit is contained in:
Andrew V. Samoilov 2004-11-08 00:04:32 +00:00
parent 18d9abb15c
commit 6c2dcea9ff
2 changed files with 7 additions and 1 deletions

View File

@ -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

View File

@ -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;