From 6c2dcea9ff231bda8079285399af45c0da1b548f Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Mon, 8 Nov 2004 00:04:32 +0000 Subject: [PATCH] * vfs.c (vfs_prefix_to_class): Avoid last class (localfs) that would accept any prefix. --- vfs/ChangeLog | 5 +++++ vfs/vfs.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/vfs/ChangeLog b/vfs/ChangeLog index b48810e5c..8e101681b 100644 --- a/vfs/ChangeLog +++ b/vfs/ChangeLog @@ -1,3 +1,8 @@ +2004-11-08 Pavel S. Shirshov + + * vfs.c (vfs_prefix_to_class): Avoid last class (localfs) that would + accept any prefix. + 2004-11-04 Mike Gorchak * cpio.c (cpio_create_entry): Added initial support for the Special diff --git a/vfs/vfs.c b/vfs/vfs.c index 8b713f05b..78604cf62 100644 --- a/vfs/vfs.c +++ b/vfs/vfs.c @@ -154,7 +154,8 @@ vfs_prefix_to_class (char *prefix) { 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) (vfs, prefix) == -1) continue;