On Tue, Jan 24, 2006 at 12:48:55AM -0800, Zac Medico wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all,
> 
> There is dangerous handling of world file updates throughout 
> portage.  The attached patch wraps all world file updates in a 
> write_atomic() function which is designed to prevent interprocess 
> interference and prevent corruption when an 'out of space' error 
> occurs.  Brian pointed out that portage_util.writedict() already 
> does a similar routine, but it is designed exclusively to write a 
> dictionary object.

the atomic writing of data in writedict could be gutted out to a 
derivative of the file class; via that, same underlying atomic update 
code for writedict and wordfile updates...

Zach, game for that mod? ;)
~harring

Attachment: pgpGHzyd8lZR2.pgp
Description: PGP signature

Reply via email to