From 9e0573fdc2855bdf651ee1a2f5afed361ed58bae Mon Sep 17 00:00:00 2001 From: Matteo Riondato Date: Thu, 28 Sep 2006 21:22:21 +0000 Subject: [PATCH] Set txrx_error to 1 when we reach abort. This makes the program correctly set the exit code. The PR has further details on this. PR: bin/103206 Submitted by: John Hickey MFC after: 3 days --- usr.bin/tftp/tftp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.bin/tftp/tftp.c b/usr.bin/tftp/tftp.c index 4deee1b6960a..c7c2c7e0fdf9 100644 --- a/usr.bin/tftp/tftp.c +++ b/usr.bin/tftp/tftp.c @@ -205,6 +205,7 @@ abort: stopclock(); if (amount > 0) printstats("Sent", amount); + txrx_error = 1; } /* @@ -330,6 +331,7 @@ abort: /* ok to ack, since user */ stopclock(); if (amount > 0) printstats("Received", amount); + txrx_error = 1; } static int