efs openStorage patch



Without the following patch, openStorage creates sub storages with no
read/write permissions, regardless of the flags parameter.  This causes
subsequent openStorage calls to fail.

Let me know if I can commit.

Mike

Index: libefs/src/ib1_file.c
===================================================================
RCS file: /cvs/gnome/libefs/src/ib1_file.c,v
retrieving revision 1.15
diff -u -r1.15 ib1_file.c
--- libefs/src/ib1_file.c	2000/11/04 12:15:03	1.15
+++ libefs/src/ib1_file.c	2001/05/24 04:29:16
@@ -412,7 +412,7 @@
 		if (!(de->type & EFS_DIR)) return EFS_ERR_NOTDIR;
 		(IB1Dir *)(*node) = g_new0 (IB1Dir, 1);
 		(*node)->efs = (EFS *)efs; 
-		(*node)->mode = EFS_DIR;
+		(*node)->mode = (flags&EFS_RDWR) | EFS_DIR;
 		((IB1Dir *)(*node))->inode = inode;
 		ib1_inode_ref (efs, inode);
 	}


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