From 6b0e02fff313735d2f8892d8979a63b7a1bc9942 Mon Sep 17 00:00:00 2001 From: "darin%meer.net" Date: Tue, 24 Aug 2004 20:30:41 +0000 Subject: [PATCH] fixes bug 255032 "gnomevfs protocol handler should use info.type to check for directories" r=biesi --- extensions/gnomevfs/nsGnomeVFSProtocolHandler.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/gnomevfs/nsGnomeVFSProtocolHandler.cpp b/extensions/gnomevfs/nsGnomeVFSProtocolHandler.cpp index 3e425c5d325..a91b254b458 100644 --- a/extensions/gnomevfs/nsGnomeVFSProtocolHandler.cpp +++ b/extensions/gnomevfs/nsGnomeVFSProtocolHandler.cpp @@ -461,8 +461,7 @@ nsGnomeVFSInputStream::DoOpen() GnomeVFSFileInfo info = {0}; rv = gnome_vfs_get_file_info(mSpec.get(), &info, GNOME_VFS_FILE_INFO_DEFAULT); - if (rv == GNOME_VFS_OK && info.mime_type && - (strcmp(info.mime_type, "x-directory/normal") == 0)) + if (rv == GNOME_VFS_OK && info.type == GNOME_VFS_FILE_TYPE_DIRECTORY) { rv = gnome_vfs_directory_list_load(&mDirList, mSpec.get(), GNOME_VFS_FILE_INFO_DEFAULT);