From: Ian Jackson Subject: Re: [PATCH v7] run QEMU as non-root Date: Tue, 29 Sep 2015 18:07:57 +0100 Message-ID: <22026.50541.73223.810233@mariner.uk.xensource.com> References: <1437671282-29517-1-git-send-email-stefano.stabellini@eu.citrix.com> <20150807152623.GW6005@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: xen-devel@lists.xensource.com, Wei Liu , ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Stefano Stabellini writes ("Re: [PATCH v7] run QEMU as non-root"): > On Fri, 7 Aug 2015, Wei Liu wrote: > > Please use for / while to loop. > > The goto retry loop is a very common patter for error handling, but I > can turn it into a loop if you are keen on it. I'm afraid I agree with Wei here. > > Also you might want to save and restore errno. > > Across the getpwnam_r call? Or across the loop? Or across the function > libxl__dm_runas_helper? I don't understand either. Also I don't understand why you set errno to 0. > Ian.