summaryrefslogtreecommitdiffstats
path: root/usr.bin/fetch/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/fetch/ftp.c')
-rw-r--r--usr.bin/fetch/ftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/fetch/ftp.c b/usr.bin/fetch/ftp.c
index 922887b..7abab35 100644
--- a/usr.bin/fetch/ftp.c
+++ b/usr.bin/fetch/ftp.c
@@ -514,7 +514,8 @@ ftp_retrieve(struct fetch_state *fs)
fclose(local);
fclose(remote);
fclose(ftp);
- display(fs, size, -1);
+ if (display(fs, size, -1) != 0)
+ return EX_PROTOCOL;
adjmodtime(fs);
return 0;
}
OpenPOWER on IntegriCloud