Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: check deleted .zwc files



Bart Schaefer wrote:

> On Jun 10,  7:34am, Clint Adams wrote:
> }
> } Perhaps everyone would be happier if the deleted files were only
> } checked if the function could not be found anywhere else.
> 
> That seems like the most reasonable thing.

Yes, I thought the same.

> It doesn't help with items (3) and (4) on my list, though.  Sven, have
> you any thoughts?

For 3. (zwc rewritten in place): I don't see a solution either, but was
thinking about implementing what you suggested (unlinking the file and
chmod()ing it). Should we just do that?

And for 4.: we could `invalidate' the name of an old entry in the list
for the same filename (setting it to the empty string or something). 
But zwcstat() should find the last entry with the same name that was
added to the list because new entries are added in front of it (or am I
missing something?).


All in all I have to admit that I hadn't thought about doing naughty
things like removing or rewriting shared zwc files while they are being
used (I thought that they would be changed only seldom -- which is still
true, I think -- and I thought that for security reasons users would
create their own zwc files and hence could control when they are in use
or not).


Bye
  Sven


-- 
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author