small bonobo vfs moniker patch



Hi,

I think the bonobo-storage-vfs moniker needs the attached patch. Otherwise
we will get the storage object only in the wrong situations ;).

Is it ok to commit?

Regards,

   Jens

-- 
"Wer die Freiheit aufgibt, um Sicherheit zu gewinnen, wird am Ende beides
verlieren." -- Benjamin Franklin
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-vfs/monikers/ChangeLog,v
retrieving revision 1.42
diff -u -p -r1.42 ChangeLog
--- ChangeLog	2002/01/17 17:59:25	1.42
+++ ChangeLog	2002/02/06 20:41:19
@@ -1,3 +1,8 @@
+2002-02-06  Jens Finke   <jens triq net>
+
+	* bonobo-storage-vfs.c (bonobo_storage_vfs_open): Throw exception
+	if filetype is _not equal_ GNOME_VFS_FILE_TYPE_DIRECTORY. 
+
 2002-01-17  Darin Adler  <darin bentspoon com>
 
 	* bonobo-storage-fs.c: Added an include of <string.h>, needed because
Index: bonobo-storage-vfs.c
===================================================================
RCS file: /cvs/gnome/gnome-vfs/monikers/bonobo-storage-vfs.c,v
retrieving revision 1.18
diff -u -p -r1.18 bonobo-storage-vfs.c
--- bonobo-storage-vfs.c	2002/01/03 17:20:33	1.18
+++ bonobo-storage-vfs.c	2002/02/06 20:41:20
@@ -201,7 +201,7 @@ bonobo_storage_vfs_open (const char *pat
 		}
 
 		if ((info->valid_fields & GNOME_VFS_FILE_INFO_FIELDS_TYPE) &&
-		    (info->type == GNOME_VFS_FILE_TYPE_DIRECTORY)) {
+		    (info->type != GNOME_VFS_FILE_TYPE_DIRECTORY)) {
 			CORBA_exception_set (ev, CORBA_USER_EXCEPTION,
 					     ex_Bonobo_Stream_IOError, NULL);
 			return NULL;
@@ -212,7 +212,7 @@ bonobo_storage_vfs_open (const char *pat
 			create = TRUE;
 		else
 			if ((info->valid_fields & GNOME_VFS_FILE_INFO_FIELDS_TYPE) &&
-			    (info->type == GNOME_VFS_FILE_TYPE_DIRECTORY)) {
+			    (info->type != GNOME_VFS_FILE_TYPE_DIRECTORY)) {
 				CORBA_exception_set (ev, CORBA_USER_EXCEPTION,
 						     ex_Bonobo_Stream_IOError, NULL);
 				return NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]