[lvm-devel] [RFC][PATCH 1/5] support command string with space

Alasdair G Kergon agk at redhat.com
Tue Oct 6 11:47:02 UTC 2009


On Wed, Sep 30, 2009 at 10:24:36PM +0200, Peter Rockai wrote:
> Anyway, a more correct solution would entail a lvm2_runv (or similarly named)
> function, that would take char **argv -- no escaping issues to care
> about. Since this just adds to the library, it should be backwards compatible
> just fine.

Yes - try a lvm2_runv() first, that simply bypasses the call to lvm_split().

Alasdair




More information about the lvm-devel mailing list