Sergey Poznyakoff wrote: > Clint Adams <sch...@debian.org> ha escrit:
>> The mt man page suggests that a fatal error should exit with a 2; >> mt's fatal_exit exits with a 1 (MT_EXIT_INVOP). >> >> What is truly intended here? > > The former: it shoud exit with code 2. Thanks for reporting. This patch (plus an “autoreconf -fi” to make sure the patched src/Makefile.am takes effect) works for me. Maybe it can be useful. -- 8< -- From: Clint Adams <sch...@debian.org> Date: Tue, 6 Apr 2010 14:26:39 +0000 Subject: Remove the extra definition of fatal_exit from mt Including two versions of fatal_exit() (one from 47cc786, one from upstream) is causing multiple definition errors on some machines. Remove fatal_exit() from mt.c, which should solve that problem and also return the proper error code (instead of 1). --- src/mt.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/src/mt.c b/src/mt.c index 05e94dc..4a10d35 100644 --- a/src/mt.c +++ b/src/mt.c @@ -307,12 +307,6 @@ print_status (char *dev, int desc) #endif } -void -fatal_exit () -{ - exit (MT_EXIT_INVOP); -} - int main (int argc, char **argv) { -- 1.7.1.rc1 -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org