1
Index: libvirt-0.8.3/tools/virsh.c
1
Index: libvirt-0.8.5/tools/virsh.c
2
2
===================================================================
3
--- libvirt-0.8.3.orig/tools/virsh.c 2010-08-04 06:35:58.000000000 -0500
4
+++ libvirt-0.8.3/tools/virsh.c 2010-08-11 17:02:04.000000000 -0500
3
--- libvirt-0.8.5.orig/tools/virsh.c 2010-11-02 16:26:33.704307000 -0500
4
+++ libvirt-0.8.5/tools/virsh.c 2010-11-02 16:29:22.793576001 -0500
6
6
#define VSH_PROMPT_RW "virsh # "
7
7
#define VSH_PROMPT_RO "virsh > "
11
11
#define GETTIMEOFDAY(T) gettimeofday(T, NULL)
12
12
#define DIFF_MSEC(T, U) \
13
13
((((int) ((T)->tv_sec - (U)->tv_sec)) * 1000000.0 + \
14
@@ -11121,6 +11123,10 @@
14
@@ -11596,6 +11598,10 @@
16
16
if ((defaultConn = getenv("VIRSH_DEFAULT_CONNECT_URI"))) {
17
ctl->name = strdup(defaultConn);
17
ctl->name = vshStrdup(ctl, defaultConn);
18
18
+ } else if (!access(LIBVIRTD_PRIV_UNIX_SOCKET, W_OK)) {
19
+ ctl->name = strdup("qemu:///system");
19
+ ctl->name = vshStrdup(ctl, "qemu:///system");
21
+ ctl->name = strdup("qemu:///session");
21
+ ctl->name = vshStrdup(ctl, "qemu:///session");
24
24
if (!vshParseArgv(ctl, argc, argv)) {
25
Index: libvirt-0.8.3/tools/Makefile.am
25
Index: libvirt-0.8.5/tools/Makefile.am
26
26
===================================================================
27
--- libvirt-0.8.3.orig/tools/Makefile.am 2010-06-06 21:50:32.000000000 -0500
28
+++ libvirt-0.8.3/tools/Makefile.am 2010-08-11 17:02:04.000000000 -0500
27
--- libvirt-0.8.5.orig/tools/Makefile.am 2010-11-02 16:26:33.704307000 -0500
28
+++ libvirt-0.8.5/tools/Makefile.am 2010-11-02 16:29:22.793576001 -0500
30
30
-I$(top_srcdir)/gnulib/lib -I../gnulib/lib \
31
31
-I../include -I$(top_srcdir)/include \
32
32
-I$(top_srcdir)/src \
39
39
$(COVERAGE_CFLAGS) \
41
Index: libvirt-0.8.3/tools/Makefile.in
41
Index: libvirt-0.8.5/tools/Makefile.in
42
42
===================================================================
43
--- libvirt-0.8.3.orig/tools/Makefile.in 2010-08-04 08:00:16.000000000 -0500
44
+++ libvirt-0.8.3/tools/Makefile.in 2010-08-11 17:02:04.000000000 -0500
45
@@ -1065,9 +1065,11 @@
43
--- libvirt-0.8.5.orig/tools/Makefile.in 2010-11-05 16:37:04.121871000 -0500
44
+++ libvirt-0.8.5/tools/Makefile.in 2010-11-05 16:38:28.991871001 -0500
45
@@ -1100,9 +1100,11 @@
46
46
-I$(top_srcdir)/gnulib/lib -I../gnulib/lib \
47
47
-I../include -I$(top_srcdir)/include \
48
48
-I$(top_srcdir)/src \