Re: [Libguestfs] [nbdkit PATCH] plugin: add and use nbdkit_realpath

2018-02-14 Thread Richard W.M. Jones
On Tue, Feb 13, 2018 at 04:44:02PM +0100, Pino Toscano wrote: > Introduce a new helper function to resolve a path name, calling > nbdkit_error on failure: other than doing what nbdkit_absolute_path > does, it also checks that the file exist (and thus avoid errors later > on). > > Apply it where

Re: [Libguestfs] [nbdkit PATCH] plugin: add and use nbdkit_realpath

2018-02-14 Thread Pino Toscano
On Wednesday, 14 February 2018 15:29:39 CET Eric Blake wrote: > On 02/13/2018 09:44 AM, Pino Toscano wrote: > > Introduce a new helper function to resolve a path name, calling > > nbdkit_error on failure: other than doing what nbdkit_absolute_path > > does, it also checks that the file exist (and

Re: [Libguestfs] [nbdkit PATCH] plugin: add and use nbdkit_realpath

2018-02-14 Thread Eric Blake
On 02/13/2018 09:44 AM, Pino Toscano wrote: Introduce a new helper function to resolve a path name, calling nbdkit_error on failure: other than doing what nbdkit_absolute_path does, it also checks that the file exist (and thus avoid errors later s/exist/exists/ s/avoid/avoids/ on). Apply it