[Pkg-libvirt-commits] [libguestfs] 33/40: lib: Avoid rewriting LV names when creating canonical device name (RHBZ#1148355).

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 3 14:49:14 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag debian/1%1.27.57-1
in repository libguestfs.

commit 886c566756d02f8568c20585a0936c387105b061
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Wed Oct 1 12:11:50 2014 +0100

    lib: Avoid rewriting LV names when creating canonical device name (RHBZ#1148355).
    
    Thanks: Timothée Ravier
---
 src/canonical-name.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/canonical-name.c b/src/canonical-name.c
index 0d8982e..6aa39e4 100644
--- a/src/canonical-name.c
+++ b/src/canonical-name.c
@@ -34,6 +34,7 @@ guestfs__canonical_device_name (guestfs_h *g, const char *device)
 
   /* /dev/hd etc. */
   if (STRPREFIX (device, "/dev/") &&
+      strchr (device+5, '/') == NULL && /* not an LV name */
       ((len = strcspn (device+5, "d")) > 0 && len <= 2)) {
     ret = safe_asprintf (g, "/dev/sd%s", &device[5+len+1]);
   }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list