From d96d0ffe7c88d9521a9e6cdd65939e9a20733cdf Mon Sep 17 00:00:00 2001 From: Olivier Brunel Date: Tue, 9 Oct 2018 18:29:05 +0200 Subject: 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 --- lib/libalpm/dload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3-70-g09d2