index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Andrew Gregory <andrew.gregory.8@gmail.com> | 2019-03-01 11:23:20 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-03-01 11:23:20 +1000 |
commit | d197d8ab82cf10650487518fb968067897a12775 (patch) | |
tree | 725aa5f7267afefcf7e27425933f1e2f4a8b8f11 /lib/libalpm/dload.c | |
parent | adb961a88e6644d5edb16cfcb5dbd1f02e4a1781 (diff) |
-rw-r--r-- | lib/libalpm/dload.c | 3 |
diff --git a/lib/libalpm/dload.c b/lib/libalpm/dload.c index 7b114230..05813c40 100644 --- a/lib/libalpm/dload.c +++ b/lib/libalpm/dload.c @@ -535,7 +535,8 @@ static int curl_download_internal(struct dload_payload *payload, if(payload->content_disp_name) { /* content-disposition header has a better name for our file */ free(payload->destfile_name); - payload->destfile_name = get_fullpath(localpath, payload->content_disp_name, ""); + payload->destfile_name = get_fullpath(localpath, + get_filename(payload->content_disp_name), ""); } else { const char *effective_filename = strrchr(effective_url, '/'); if(effective_filename && strlen(effective_filename) > 2) { |