At 2002-05-28 10:18:51 (+0200), Bart Lateur wrote:
> On Wed, 22 May 2002 19:27:02 +0200, Wolfgang Weisselberg wrote:

> >BTW, I think zpack could be done better by copying the original
> >to .bak, generate a new DB .new (as done in zpack) and then
> >atomically rename .new to be the database.  But currently I lack
> >the time for a patch for that. :-/

> (Getting OT, sorry for that)

> The problem with that, at least under Unix and in the generic case, is
> that it's impossible to keep the original owner and permissions of the
> file for your copy.

True.

> My assumption is that the file is owned by somebody, read/writable for
> group and/or world, and that the script runs as somebody else, for
> example as with CGI scripts.

> Or am I missing something?

I think there are some things that could be done, but not in the
generic case.  Yes, I wasn't thinking of that, I admit it.
I could imagine using a symlink which is set atomically to
the current version, but that implies symlinks and the right
to write into the directory (which is not given in all cases,
even if you may change one file).

Hmmm...

-Wolfgang

Reply via email to