[1864] in Moira
more small changes to cluster.c
daemon@ATHENA.MIT.EDU (Qing Dong)
Fri Sep 14 15:35:49 2001
Message-Id: <200109141935.PAA19287@melbourne-city-street.mit.edu>
Date: Fri, 14 Sep 2001 15:35:42 -0400
To: moiradev@mit.edu
From: Qing Dong <dongq@MIT.EDU>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
The moira client crashed on Win2k when trying to get machine info.
Here is the patch to fix it:
Thanks.
Qing
Index: cluster.c
===================================================================
RCS file:
\\dongq-afs\all\athena.mit.edu\astaff\project\moiradev\repository/moira/clie
nts/moira/cluster.c,v
retrieving revision 1.55
diff -c -r1.55 cluster.c
*** cluster.c 2001/09/14 03:20:34 1.55
--- cluster.c 2001/09/14 19:29:13
***************
*** 295,301 ****
stat = do_mr_query("get_subnet", 1, args, StoreInfo, &elem);
if (stat)
com_err(program_name, stat, " looking up subnet info");
! if (atoi(((char **)elem->q_data)[2]) == SNET_STATUS_PRIVATE)
{
Put_message("");
sprintf(buf, "Warning: This host is on a private subnet.");
--- 295,301 ----
stat = do_mr_query("get_subnet", 1, args, StoreInfo, &elem);
if (stat)
com_err(program_name, stat, " looking up subnet info");
! else if (atoi(((char **)elem->q_data)[2]) == SNET_STATUS_PRIVATE)
{
Put_message("");
sprintf(buf, "Warning: This host is on a private subnet.");
***************
*** 2080,2085 ****
--- 2080,2086 ----
int status;
struct mqelem *elem = NULL;
+ account_number = strdup("");
if (GetValueFromUser("Account Number", &account_number) == SUB_ERROR)
return DM_NORMAL;