[26181] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r25442 - in trunk/athena/bin/getcluster: . debian

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Mon Nov 28 10:38:16 2011

Date: Mon, 28 Nov 2011 10:38:15 -0500
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201111281538.pASFcFvC012813@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: jdreed
Date: 2011-11-28 10:38:15 -0500 (Mon, 28 Nov 2011)
New Revision: 25442

Modified:
   trunk/athena/bin/getcluster/debian/changelog
   trunk/athena/bin/getcluster/getcluster.c
Log:
In getcluster:
  * Revert changes to getcluster.c in r25378.  Continue with broken
    behavior and hope that nobody sets a clusterinfo value with a space in
    it.


Modified: trunk/athena/bin/getcluster/debian/changelog
===================================================================
--- trunk/athena/bin/getcluster/debian/changelog	2011-11-17 17:54:19 UTC (rev 25441)
+++ trunk/athena/bin/getcluster/debian/changelog	2011-11-28 15:38:15 UTC (rev 25442)
@@ -1,3 +1,11 @@
+debathena-getcluster (10.0.3-0debathena1) unstable; urgency=low
+
+  * Revert changes to getcluster.c in r25378.  Continue with broken
+    behavior and hope that nobody sets a clusterinfo value with a space in
+    it.
+
+ -- Jonathan Reed <jdreed@mit.edu>  Mon, 28 Nov 2011 10:37:05 -0500
+
 debathena-getcluster (10.0.2-0debathena1) unstable; urgency=low
 
   * Update date for getcluster.1 to reflect reality

Modified: trunk/athena/bin/getcluster/getcluster.c
===================================================================
--- trunk/athena/bin/getcluster/getcluster.c	2011-11-17 17:54:19 UTC (rev 25441)
+++ trunk/athena/bin/getcluster/getcluster.c	2011-11-28 15:38:15 UTC (rev 25442)
@@ -421,9 +421,9 @@
 static void output_var(const char *var, const char *val, int bourneshell)
 {
   if (bourneshell)
-    printf("%s=\"%s\" ; export %s ;\n", var, val, var);
+    printf("%s=%s ; export %s ;\n", var, val, var);
   else
-    printf("setenv %s \"%s\" ;\n", var, val);
+    printf("setenv %s %s ;\n", var, val);
 }
 
 static void upper(char *v)


home help back first fref pref prev next nref lref last post