[libvirt] [PATCH 2/3] util: file: Don't sanitize URI protocol separator in virFileSanitizePath

2014-02-24 Thread Peter Krempa
The function removes multiple following slashes from paths. This is okay unless you try to sanitize a URI this way. Skip the protocol definition until :// and sanitize just the path part. The sanitization function is used in virStorageVolLookupByPath as the first step before passing the path to

Re: [libvirt] [PATCH 2/3] util: file: Don't sanitize URI protocol separator in virFileSanitizePath

2014-02-24 Thread Daniel P. Berrange
On Mon, Feb 24, 2014 at 04:21:47PM +0100, Peter Krempa wrote: The function removes multiple following slashes from paths. This is okay unless you try to sanitize a URI this way. Skip the protocol definition until :// and sanitize just the path part. The sanitization function is used in

Re: [libvirt] [PATCH 2/3] util: file: Don't sanitize URI protocol separator in virFileSanitizePath

2014-02-24 Thread Eric Blake
On 02/24/2014 08:26 AM, Daniel P. Berrange wrote: On Mon, Feb 24, 2014 at 04:21:47PM +0100, Peter Krempa wrote: The function removes multiple following slashes from paths. This is okay unless you try to sanitize a URI this way. Skip the protocol definition until :// and sanitize just the path