[Libguestfs] [PATCH 2/2] common/mlstdutils: Add with_openfile function.

Pino Toscano ptoscano at redhat.com
Thu Nov 16 12:20:14 UTC 2017


On Sunday, 5 November 2017 20:42:41 CET Richard W.M. Jones wrote:
> This safe wrapper around Unix.openfile ensures that exceptions
> escaping cannot leave unclosed files.
> 
> There are only a few places in the code where this wrapper can be used
> currently.  There are other occurences of Unix.openfile but they are
> not suitable for replacement.
> ---

LGTM.

Thanks,
-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20171116/2a3afaeb/attachment.sig>


More information about the Libguestfs mailing list