[1482] in Moira
IMAP problems
daemon@ATHENA.MIT.EDU (Qing Dong)
Thu Mar 23 17:29:33 2000
Message-Id: <200003232229.RAA09544@melbourne-city-street.MIT.EDU>
Date: Thu, 23 Mar 2000 17:29:26 -0500
To: moiradev@mit.edu
From: Qing Dong <dongq@MIT.EDU>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
I have two problems when testing IMAP under Windows:
1. Crashing under windows when trying to set an IMAP box. Unable to
reproduce on athena.
Uninitialized pointer:
Index: pobox.c
===================================================================
RCS file:
\\dongq-afs\all\athena.mit.edu\astaff\project\moiradev\repository/moira/clie
nts/moira/pobox.c,v
retrieving revision 1.35
diff -c -r1.35 pobox.c
*** pobox.c 2000/03/15 22:44:04 1.35
--- pobox.c 2000/03/23 22:10:16
***************
*** 149,155 ****
static int InsertSortedImapPart(int argc, char **argv, void *arg)
{
! struct mqelem *new, *elem, *prev, **parts = arg;
int avail = atoi(argv[NFS_SIZE]) - atoi(argv[NFS_ALLOC]);
/* Dup the argv into a new mqelem. */
--- 149,156 ----
static int InsertSortedImapPart(int argc, char **argv, void *arg)
{
! struct mqelem *new = NULL;
! struct mqelem *elem, *prev, **parts = arg;
int avail = atoi(argv[NFS_SIZE]) - atoi(argv[NFS_ALLOC]);
/* Dup the argv into a new mqelem. */
2. Endless loop when picking partitions. Happens both under Windows and
Athena:
***************
*** 333,338 ****
--- 334,340 ----
char **pargv = elem->q_data;
if (!strcmp(partition, pargv[NFS_DIR]))
break;
+ elem = elem->q_forw;
}
if (!elem)
{
Thanks.
Qing