File glibc-2.7.patch of Package libchewing

diff -ru libchewing-0.3.0.orig/src/porting_layer/src/plat_mmap_posix.c libchewing-0.3.0/src/porting_layer/src/plat_mmap_posix.c
--- libchewing-0.3.0.orig/src/porting_layer/src/plat_mmap_posix.c	2006-05-15 08:49:43.000000000 +0200
+++ libchewing-0.3.0/src/porting_layer/src/plat_mmap_posix.c	2007-12-04 16:32:51.000000000 +0100
@@ -48,7 +48,7 @@
 	if ( FLAG_ATTRIBUTE_READ & fileAccessAttr )
 		handle->fd = open( file, O_RDONLY );
 	else
-		handle->fd = open( file, O_RDWR | O_CREAT );
+		handle->fd = open( file, O_RDWR | O_CREAT , S_IRUSR | S_IWUSR);
 
 	if ( handle->fd == -1 )
 		return 0;
openSUSE Build Service is sponsored by