[3341] in Athena Bugs

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

6.3B vax mt status bad exit value

daemon@ATHENA.MIT.EDU (epeisach@ATHENA.MIT.EDU)
Mon Oct 2 15:00:09 1989

From: epeisach@ATHENA.MIT.EDU
Date: Mon, 2 Oct 89 14:59:49 -0400
To: bugs@ATHENA.MIT.EDU

mt returns with bogus exit status's even when successful.

paris# mt status
tu78 tape drive, residual=1
ds=160600<RDY,PRES,ONL,FPT,AVAIL>
er=1<>
Exit 10              mt status


However:

paris# mt rew
paris# mt fsf

both are ok.

A quick look at the source indicates that the program is missing an exit
at the end of main.


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