[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 3/7] util: Don't miss the slash in constructed path



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]