summaryrefslogtreecommitdiffstats
path: root/lib/libalpm
diff options
context:
space:
mode:
authorOlivier Brunel <jjk@jjacky.com>2018-10-09 18:29:05 +0200
committerAndrew Gregory <andrew.gregory.8@gmail.com>2018-10-18 02:28:32 +0200
commitd96d0ffe7c88d9521a9e6cdd65939e9a20733cdf (patch)
tree5d1ef50bf51811faebd200c0ec3b6d2f2ac8a954 /lib/libalpm
parent7afe51171fe063bf3031cc68fc8c7ac914a01de2 (diff)
downloadpacman-d96d0ffe7c88d9521a9e6cdd65939e9a20733cdf.tar.gz
pacman-d96d0ffe7c88d9521a9e6cdd65939e9a20733cdf.tar.xz
alpm: Do not raise SIGINT when filesize goes over limit
Variable dload_interrupted is used both to abort a download because SIGINT was caught, and when a file limit is reached. But raising SIGINT is only meant to happen in the first case. Signed-off-by: Olivier Brunel <jjk@jjacky.com>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/dload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c
index cca39470..00993910 100644
--- a/lib/libalpm/dload.c
+++ b/lib/libalpm/dload.c
@@ -585,7 +585,7 @@ cleanup:
unmask_signal(SIGINT, &orig_sig_int);
unmask_signal(SIGPIPE, &orig_sig_pipe);
/* if we were interrupted, trip the old handler */
- if(dload_interrupted) {
+ if(dload_interrupted == ABORT_SIGINT) {
raise(SIGINT);
}