Re: [libvirt] [PATCHv4 1/2] util: refactor virFileOpenAs

2012-02-03 Thread Eric Blake
On 02/01/2012 11:36 PM, Laine Stump wrote: virFileOpenAs previously would only try opening a file as the current user, or as a different user, but wouldn't try both methods in a single call. This made it cumbersome to use as a replacement for open(2). Additionally, it had a lot of historical

Re: [libvirt] [PATCHv4 1/2] util: refactor virFileOpenAs

2012-02-03 Thread Laine Stump
On 02/03/2012 03:41 PM, Eric Blake wrote: On 02/01/2012 11:36 PM, Laine Stump wrote: virFileOpenAs previously would only try opening a file as the current user, or as a different user, but wouldn't try both methods in a single call. This made it cumbersome to use as a replacement for open(2).

[libvirt] [PATCHv4 1/2] util: refactor virFileOpenAs

2012-02-01 Thread Laine Stump
virFileOpenAs previously would only try opening a file as the current user, or as a different user, but wouldn't try both methods in a single call. This made it cumbersome to use as a replacement for open(2). Additionally, it had a lot of historical baggage that led to it being difficult to