Home
last modified time | relevance | path

Searched hist:"947995 c09ebd35a752837a5573985ba5a9942ec1" (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/
H A Dblock.cdiff 947995c09ebd35a752837a5573985ba5a9942ec1 Tue May 08 09:51:48 CDT 2012 Paolo Bonzini <pbonzini@redhat.com> block: protect path_has_protocol from filenames with colons

path_has_protocol will erroneously return "true" if the colon is part
of a filename. These names are common with stable device names produced
by udev. We cannot fully protect against this in case the filename
does not have a path component (e.g. if the current directory is
/dev/disk/by-path), but in the common case there will be a slash before
and path_has_protocol can easily detect that and return false.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>