1 |
diff -rup xen-3.3.0-orig/tools/xenstore/xenstore_client.c xen-3.3.0-new/tools/xenstore/xenstore_client.c |
2 |
--- xen-3.3.0-orig/tools/xenstore/xenstore_client.c 2008-08-22 10:49:09.000000000 +0100 |
3 |
+++ xen-3.3.0-new/tools/xenstore/xenstore_client.c 2008-08-29 12:20:48.000000000 +0100 |
4 |
@@ -589,7 +589,9 @@ main(int argc, char **argv) |
5 |
|
6 |
xsh = socket ? xs_daemon_open() : xs_domain_open(); |
7 |
if (xsh == NULL) |
8 |
- err(1, socket ? "xs_daemon_open" : "xs_domain_open"); |
9 |
+ xsh = socket ? xs_domain_open() : xs_daemon_open(); |
10 |
+ if (xsh == NULL) |
11 |
+ err(1, "xs_*_open"); |
12 |
|
13 |
again: |
14 |
if (transaction) { |