[2328] in Athena Bugs

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

A bug with xbiff (mailbox widget actually)

daemon@ATHENA.MIT.EDU (jnrees@ATHENA.MIT.EDU)
Mon Jun 5 14:35:09 1989

From: <jnrees@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Cc: swick@ATHENA.MIT.EDU
Date: Mon, 05 Jun 89 14:34:37 EDT

NOTE: this report is with respect to X11R3

When using the .checkCommand resource, when mail is present (ie.  the
system command returns status 0) there is no beep, and the bitmap
doesn't change.  It is known that the system command _is_ being
executed (my command has visible side-effects).

I believe I have found the bug, but I have not tested the obvious fix.

File /mit/x11/src/lib/Xaw/Mailbox.c: line 411:

	switch (system(w->mailbox.check_command)) {
	  case 0:
	    mailboxsize = w->mailbox.last_size + 1;
	  /* case 1 is no change */
	  case 2:
	    mailboxsize = 0;
	  /* treat everything else as no change */
	}

Upon exit from this body, mailboxsize will always equal 0, since there
is no 'break;' command before 'case 2:'. 

				Jim Rees
				Athena User Consultant

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