Index: /branches/eam_branches/ipp-20150625/Ohana/src/opihi/lib.shell/ConfigInit.c
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/opihi/lib.shell/ConfigInit.c	(revision 38571)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/opihi/lib.shell/ConfigInit.c	(revision 38572)
@@ -38,4 +38,9 @@
   }
 
+  // XXX this is a bit dangerous : answer may have an arbitrary
+  // length, but we do not know the available space in 'ptr'
+  // we really should be passing in the buffer size and limiting the copy
+
+
   if (!strcmp (mode, "%s"))  strcpy ((char *) ptr, answer);
   if (!strcmp (mode, "%d"))  *(int *) ptr       = atoi (answer);
Index: /branches/eam_branches/ipp-20150625/Ohana/src/opihi/lib.shell/SocketOps.c
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/opihi/lib.shell/SocketOps.c	(revision 38571)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/opihi/lib.shell/SocketOps.c	(revision 38572)
@@ -23,5 +23,9 @@
   status = gethostname (myHostname, HOST_NAME_MAX);
 
-  fprintf (stderr, "target host: %s, real host: %s\n", hostname, myHostname);
+  if (strcmp (hostname, myHostname)) {
+    fprintf (stderr, "target host: %s, real host: %s\n", hostname, myHostname);
+    fprintf (stderr, "please run on the correct host\n");
+    exit (2);
+  }
 
   GetPortRange (&start, &stop, portinfo);
@@ -197,4 +201,9 @@
 
   host = gethostbyname (hostname);
+  if (!host) {
+    gprint (GP_ERR, "cannot connect to pantasks server %s\n", hostname);
+    exit (3);
+  }
+
   bzero (hostip, 80);
   for (i = 0; i < host[0].h_length; i++) {
Index: /branches/eam_branches/ipp-20150625/Ohana/src/opihi/lib.shell/gprint.c
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/opihi/lib.shell/gprint.c	(revision 38571)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/opihi/lib.shell/gprint.c	(revision 38572)
@@ -255,5 +255,5 @@
   if (file == NULL) {
     // XXX this is a problem: we are leaving open the old file
-    fprintf (stderr, "cannot open file %s\n", stream[0].name);
+    fprintf (stderr, "gprint cannot open file %s\n", stream[0].name);
     free (stream[0].name);
     file = (dest == GP_LOG) ? stdout : stderr;
