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

patch to fix io-seek on readonly stores



On Wed, Apr 26, 2000 at 11:09:39PM +0200, Marcus Brinkmann wrote:
> 
> Note that the first file, io_seek.c, defines diskfs_readonly as a macro to 0.

Ah, I think I see clearly now. I should think first, and then post.

Anyway, here is a patch.

Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server 
Marcus Brinkmann              GNU    http://www.gnu.org    for public PGP Key 
Marcus.Brinkmann@ruhr-uni-bochum.de,     marcus@gnu.org    PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       brinkmd@debian.org
diff -ru /mnt/marcus/gnu/cvs/hurd/libdiskfs/ChangeLog libdiskfs/ChangeLog
--- /mnt/marcus/gnu/cvs/hurd/libdiskfs/ChangeLog	Sat Mar 18 19:37:13 2000
+++ libdiskfs/ChangeLog	Wed Apr 26 23:24:42 2000
@@ -1,3 +1,8 @@
+2000-04-26  Marcus Brinkmann  <Marcus.Brinkmann@ruhr-uni-bochum.de>
+
+	* io-seek.c: Prevent diskfs_check_readonly from having its usual
+	effect here, instead doing this with diskfs_readonly.
+
 2000-03-17  Roland McGrath  <roland@baalperazim.frob.com>
 
 	* file-exec.c (diskfs_S_file_exec): Fix typo and braino in last change.
diff -ru /mnt/marcus/gnu/cvs/hurd/libdiskfs/io-seek.c libdiskfs/io-seek.c
--- /mnt/marcus/gnu/cvs/hurd/libdiskfs/io-seek.c	Thu May  9 20:02:50 1996
+++ libdiskfs/io-seek.c	Wed Apr 26 23:23:12 2000
@@ -19,7 +19,7 @@
 #include "io_S.h"
 #include <unistd.h>
 
-#define diskfs_readonly 0
+#define diskfs_check_readonly() 0
 #define diskfs_synchronous 0
 
 /* Implement io_seek as described in <hurd/io.defs>. */

Reply to: