diff options
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r-- | usr.bin/fetch/fetch.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c index cc49b9fd4044..ad605bf921e8 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -400,10 +400,12 @@ fetch(char *URL, char *path) signal: if (sigalrm) warnx("transfer timed out"); - if (sigint) + if (sigint) { warnx("transfer interrupted"); + goto failure; + } - if (!sigalrm && !sigint) { + if (!sigalrm) { /* check the status of our files */ if (ferror(f)) warn("%s", URL); |