Subject: Re: Compressed vnd handling tested successfully
To: None <tech-kern@NetBSD.org>
From: Cliff Wright <cliff@snipe444.org>
List: tech-kern
Date: 06/13/2005 13:49:47
Note their is a bug when using OpenOffice on BSD read-only file system.
Linux seems to have the philosophy let it run no matter what, where as
BSD will report if it finds something wrong. This is seen in the use
of fnctl F_SETLK with OpenOffice in a read-only filesystem on a NetBSD
LiveCD. BSD says setting the lock does not make sense on a read-only
file system, and reports an error, where Linux just lets this go.
The quick hack patch I used is below, on file:
/usr/pkgsrc/misc/openoffice/work/store/source/fileunx.hxx
--- fileunx.hxx.orig 2003-08-15 04:53:11.000000000 -0700
+++ fileunx.hxx 2005-05-18 11:24:51.000000000 -0700
@@ -251,7 +251,7 @@
lock.l_start = 0;
lock.l_len = 0;
- if (::fcntl (rhFile, F_SETLK, &lock) < 0)
+ if ((::fcntl (rhFile, F_SETLK, &lock) < 0) && errno != EINVAL)
{
// Save original result.
storeError result;
Note the EINVAL could cover other cases, so I have not turned this in
to the OpenOffice people, as it may be to broad.
Because this was a message response I posted here, but might be better
on tech-pkg.
On Mon, 13 Jun 2005 02:17:39 +0200 (CEST)
Hubert Feyrer <hubert@feyrer.de> wrote:
> 'Nuff for KDE and OpenOffice. :-)