summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2005-10-06 22:14:51 +0000
committerDaniel Drake <dsd@gentoo.org>2005-10-06 22:14:51 +0000
commit2dc612d528a28469992bcaf597bb64aaf0f3ef01 (patch)
tree9103b343576ca1618c880c498bc1e89ff9de2370 /app-text/wv/files
parentInstall examplescripts #108258 by Wolfram Schlich (diff)
downloadhistorical-2dc612d528a28469992bcaf597bb64aaf0f3ef01.tar.gz
historical-2dc612d528a28469992bcaf597bb64aaf0f3ef01.tar.bz2
historical-2dc612d528a28469992bcaf597bb64aaf0f3ef01.zip
Add patch from Fredrik Hedberg to stop files being opened for read/write.
Package-Manager: portage-1.589-cvs
Diffstat (limited to 'app-text/wv/files')
-rw-r--r--app-text/wv/files/digest-wv-1.0.3-r11
-rw-r--r--app-text/wv/files/wv-1.0.3-libole2-readonly.patch32
2 files changed, 33 insertions, 0 deletions
diff --git a/app-text/wv/files/digest-wv-1.0.3-r1 b/app-text/wv/files/digest-wv-1.0.3-r1
new file mode 100644
index 000000000000..a4593f850e7f
--- /dev/null
+++ b/app-text/wv/files/digest-wv-1.0.3-r1
@@ -0,0 +1 @@
+MD5 71e42aa9af1e03cc8c608bbbdcb43af8 wv-1.0.3.tar.gz 857412
diff --git a/app-text/wv/files/wv-1.0.3-libole2-readonly.patch b/app-text/wv/files/wv-1.0.3-libole2-readonly.patch
new file mode 100644
index 000000000000..aff8929330f1
--- /dev/null
+++ b/app-text/wv/files/wv-1.0.3-libole2-readonly.patch
@@ -0,0 +1,32 @@
+From http://users.avafan.com/~fredrik/beagle/wv-libole2-readonly.patch
+See http://mail.gnome.org/archives/dashboard-hackers/2005-August/msg00018.html
+
+--- libole2/ms-ole.c-old 2004-10-22 20:59:51.000000000 -0400
++++ libole2/ms-ole.c 2005-08-03 10:06:14.000000000 -0400
+@@ -1723,7 +1723,7 @@
+ gboolean try_mmap,
+ MsOleSysWrappers *wrappers)
+ {
+- int prot = PROT_READ | PROT_WRITE;
++ int prot = PROT_READ;
+ MsOle *f;
+ MsOleHandleType file;
+
+@@ -1737,15 +1737,9 @@
+ f = *fs = ms_ole_new ();
+ take_wrapper_functions (f, wrappers);
+
+- f->file_des = file = f->syswrap->open2 (name, O_RDWR, f->syswrap->closure);
++ f->file_des = file = f->syswrap->open2 (name, O_RDONLY, f->syswrap->closure);
+ f->ref_count = 0;
+- f->mode = 'w';
+-
+- if (file == BAD_MSOLE_HANDLE) {
+- f->file_des = file = f->syswrap->open2 (name, O_RDONLY, f->syswrap->closure);
+- f->mode = 'r';
+- prot &= ~PROT_WRITE;
+- }
++ f->mode = 'r';
+
+ if ((file == BAD_MSOLE_HANDLE) || !(f->syswrap->isregfile (file, f->syswrap->closure))) {
+ g_warning ("No such file '%s'\n", name);