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

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

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]