[libvirt] [PATCH 3/7] util: Don't miss the slash in constructed path
John Ferlan
jferlan at redhat.com
Wed May 8 13:27:43 UTC 2013
On 05/06/2013 08:45 AM, Osier Yang wrote:
> In case of the caller can pass a "prefix" (or "sysfs_prefix")
> without the trailing slash, and Unix-Like system always eats
> up the redundant "slash" in the filepath, let's add it explicitly.
> ---
> src/util/virutil.c | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
>
ACK - since it avoids possible misuse and extraneous checks to determine
if passed/constant path has the trailing "/"
John
More information about the libvir-list
mailing list