mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0018-RHEL-7-Remove-libguestfs-live-RHBZ-798980.patch

491457
From d1addddd0ef341d111cd485cdce68f57c9c857a3 Mon Sep 17 00:00:00 2001
4ebc84
From: "Richard W.M. Jones" <rjones@redhat.com>
4ebc84
Date: Fri, 21 Dec 2012 15:50:11 +0000
4ebc84
Subject: [PATCH] RHEL 7: Remove libguestfs live (RHBZ#798980).
4ebc84
4ebc84
This isn't supported in RHEL 7.
4ebc84
---
4ebc84
 lib/launch-unix.c | 7 +++++++
4ebc84
 1 file changed, 7 insertions(+)
4ebc84
4ebc84
diff --git a/lib/launch-unix.c b/lib/launch-unix.c
4ebc84
index 4794a7b13..993b83601 100644
4ebc84
--- a/lib/launch-unix.c
4ebc84
+++ b/lib/launch-unix.c
4ebc84
@@ -37,6 +37,12 @@
4ebc84
 static int
4ebc84
 launch_unix (guestfs_h *g, void *datav, const char *sockpath)
4ebc84
 {
4ebc84
+  error (g,
4ebc84
+	 "launch: In RHEL, only the 'libvirt' or 'direct' method is supported.\n"
4ebc84
+	 "In particular, \"libguestfs live\" is not supported.");
4ebc84
+  return -1;
4ebc84
+
4ebc84
+#if 0
4ebc84
   int r, daemon_sock = -1;
4ebc84
   struct sockaddr_un addr;
4ebc84
   uint32_t size;
4ebc84
@@ -106,6 +112,7 @@ launch_unix (guestfs_h *g, void *datav, const char *sockpath)
4ebc84
     g->conn = NULL;
4ebc84
   }
4ebc84
   return -1;
4ebc84
+#endif
4ebc84
 }
4ebc84
 
4ebc84
 static int
4ebc84
-- 
4ebc84
2.21.0
4ebc84