Skip to contentSkip to conversation

use specified username in cldcli

PATCH Applied Pete Zaitcev 2 participants 2 messages May 3, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 use specified username in cldcli

I suspect I copy-pasted over it when I converted to ncld, but anyhow this patch seems work and do what's expected for --user flag.

---
 tools/cldcli.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/cldcli.c +1 -1
index 7c73091..79a1009 100644
@@ -712,7 +712,7 @@ int main (int argc, char *argv[])
 	dr = host_list->data;
 
 	nsess = ncld_sess_open(dr->host, dr->port, &error, sess_event, NULL,
-			     "cldcli", "cldcli", &cli_log);
+			     our_user, our_user, &cli_log);
 	if (!nsess) {
 		if (error < 1000) {
 			fprintf(stderr, TAG ": cannot open CLD session: %s\n",
Applied
#1 lore raw
Quoted 14 lines · Pete Zaitcev

I suspect I copy-pasted over it when I converted to ncld, but anyhow this patch seems work and do what's expected for --user flag.

---
  tools/cldcli.c |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tools/cldcli.c +0 -0
index 7c73091..79a1009 100644

tools/cldcli.c int main (int argc, char *argv[]) · line 717

Quoted 7 lines
tools/cldcli.c +1 -1
@@ -712,7 +712,7 @@ int main (int argc, char *argv[])
  	dr = host_list->data;
 
  	nsess = ncld_sess_open(dr->host, dr->port,&error, sess_event, NULL,
-			     "cldcli", "cldcli",&cli_log);
+			     our_user, our_user,&cli_log);
  	if (!nsess) {
  		if (error<  1000) {

applied

PS. you sent this to [email protected], and unfortunately, I don't own that domain. I should. :) For future reference, [email protected] or [email protected] are equivalent and should exist for the long term (even if I get fired from Red Hat or somesuch :)).

Jeff