[net.news.b] uuxqt bug

dmmartindale (11/07/82)

There may be a bug in a more recent version of uuxqt that some USENET sites
may be running.  If your uuxqt.c doesn't try to separate the exit status
of the commands it runs into an exit status and signal number, then you
don't have the bug (look at the line following the call to shio()).
However, if your uuxqt does this, check to make sure that it labels the
two fields correctly - it was reversed here.  This may have been my own
typo when installing the change, or it may be wrong at other sites too.
This is the correction I made:

	Dave Martindale

*** /u/dmmartindale/old/uuxqt.c	Sun Nov  7 13:25:44 1982
--- /usr/src/cmd/uucp/uuxqt.c	Sun Nov  7 13:31:15 1982
***************
*** 171,177
  		mvxfiles(xfile);
  		chdir(XQTDIR);
  		ret = shio(buf, fin, dfile, user);
! 		sprintf(retstat, "exit %d, signal %d", ret&0377, (ret>>8)&0377);
  		if (strcmp(xcmd, "rmail") != SAME
  		    && notiok && (!nonzero || (nonzero && ret != 0)))
  			notify(user, Rmtname, cmd, retstat);

--- 171,177 -----
  		mvxfiles(xfile);
  		chdir(XQTDIR);
  		ret = shio(buf, fin, dfile, user);
! 		sprintf(retstat, "signal %d, exit %d", ret&0377, (ret>>8)&0377);
  		if (strcmp(xcmd, "rmail") != SAME
  		    && notiok && (!nonzero || (nonzero && ret != 0)))
  			notify(user, Rmtname, cmd, retstat);