diff options
author | matteo <matteo@FreeBSD.org> | 2006-09-28 21:22:21 +0000 |
---|---|---|
committer | matteo <matteo@FreeBSD.org> | 2006-09-28 21:22:21 +0000 |
commit | 945cd1291e9323ff5c2d93376d86abff614a1613 (patch) | |
tree | fa15f965de4753e118d43b5cd626ffba8551232a /usr.bin/tftp/tftp.c | |
parent | ba03f04b1432aba8c3c760cce5119eca140b0025 (diff) | |
download | FreeBSD-src-945cd1291e9323ff5c2d93376d86abff614a1613.zip FreeBSD-src-945cd1291e9323ff5c2d93376d86abff614a1613.tar.gz |
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 <jjh-freebsd@daedalian.us>
MFC after: 3 days
Diffstat (limited to 'usr.bin/tftp/tftp.c')
-rw-r--r-- | usr.bin/tftp/tftp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/tftp/tftp.c b/usr.bin/tftp/tftp.c index 4deee1b..c7c2c7e0 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 |