xbps/lib
Juan RP 791e683e01 fetch: handle GET with offset == length.
While xbps_fetch_file() creates the .part file and for whatever reason
it did not finish properly to rename the file, it could request the server
to restart the download with offset set to file size, resulting in HTTP 416
return code.

Handle this case by checking if the server returns 416 and then checking
if the returned file size matches the requested offset and just rename
the file.

Thanks to @beefcurtains for the test case.
2015-06-28 04:28:55 +02:00
..
compat lib/compat/vasprintf.c: make this build and fix sign-compare warnings. 2013-02-02 01:31:20 +01:00
external lib/external/fexec.c: fix build with glibc>=2.20 (needs _DEFAULT_SOURCE). 2014-09-08 18:46:12 +02:00
fetch fetch: handle GET with offset == length. 2015-06-28 04:28:55 +02:00
portableproplib proplib: check for EOF a bit early on the internalized plist. 2015-05-28 09:34:03 +02:00
archive.c xbps-query(8: added --cat=FILE mode support. 2014-11-17 15:45:46 +01:00
cb_util.c Remove the config.h kludge and override vasprintf detection via HAVE_VASPRINTF. 2014-01-20 18:50:33 +01:00
download.c fetch: handle GET with offset == length. 2015-06-28 04:28:55 +02:00
initend.c xbps_end: don't bother releasing everything; pkgdb is enough. 2015-01-14 18:43:17 +01:00
Makefile lib/Makefile: remove some disabled warnings for lib{fetch,portableproplib}. 2015-02-15 05:47:35 +01:00
package_config_files.c lib/package_config_files.c: resource leak (CID 62682) 2014-10-05 09:13:03 +02:00
package_configure.c xbps-reconfigure(8): new option -i, --ignore to ignore pkgs with -a, --all. 2014-12-09 13:10:48 +01:00
package_conflicts.c libxbps: fixed replaces/replace_vpkg test case. 2014-09-14 12:50:17 +02:00
package_find_obsoletes.c Keep /usr/sbin if found as obsolete, it's a symlink in void. 2015-06-05 08:29:05 +02:00
package_fulldeptree.c xbps_get_pkg_fulldeptree: detect pkgs depending on itself via virtual pkgs. 2015-03-20 08:03:06 +01:00
package_msg.c lib/package_msg.c: fix a heap overflow (noticed by @Gottox). 2014-09-16 09:13:32 +02:00
package_orphans.c xbps-remove: fix #95 (xbps-remove -R pkg lists/removes orphans) 2015-05-06 17:21:13 +02:00
package_register.c Remove empty self replaced pkg arrays from pkgdb. 2014-09-14 18:16:43 +02:00
package_remove.c Keep /usr/sbin if found as obsolete, it's a symlink in void. 2015-06-05 08:29:05 +02:00
package_script.c Replaced config/system {repo,preserve,virtualpkg}.d with a single directory. 2014-11-06 09:58:04 +01:00
package_state.c Get rid of libfetch and proplib external dependencies. 2013-06-20 10:26:12 +02:00
package_unpack.c unpack: make sure the xucd callbacks don't get a dangling pointer. 2015-05-28 10:39:39 +02:00
pkgdb_conversion.c Introduce xbps_plist_{array,dictionary}_from_file(). 2015-05-28 10:15:05 +02:00
pkgdb.c Introduce xbps_plist_{array,dictionary}_from_file(). 2015-05-28 10:15:05 +02:00
plist_fetch.c libfetch: fix races in the cache connection code. 2014-12-23 10:52:54 +01:00
plist_find.c libxbps: improve debug messages again. 2015-01-21 11:39:45 +01:00
plist_match.c libxbps: the provides obj now expects exact pkgver strings. 2015-01-10 07:26:23 +01:00
plist_remove.c Add xbps_remove_{pkgname,string}_from_array() to the API. 2014-09-13 18:13:25 +02:00
plist.c lib/plist.c: CID 62704 (argument cannot be negative) 2014-10-05 13:22:28 +02:00
proplib_wrapper.c Introduce xbps_plist_{array,dictionary}_from_file(). 2015-05-28 10:15:05 +02:00
pubkey2fp.c lib/pubkey2fp.c: fix CID 62724 correctly. 2014-10-07 09:34:14 +02:00
repo_pkgdeps.c lib/repo_pkgdeps.c: fix some debug printfs. 2015-02-02 09:37:34 +01:00
repo_sync.c xbps_repo_sync: fix regression introduced in 87ca42f3. 2014-10-24 11:16:24 +02:00
repo.c xbps_repo_lock: sleep() for a second if the lock is already taken. 2015-06-04 08:08:40 +02:00
rpool.c Introduce xbps_repo_{un,}lock() to serialize write access to repodata. 2015-03-25 12:00:59 +01:00
transaction_commit.c If pkg signature verification files, remove pkg archive and its signature file. 2015-06-04 09:59:52 +02:00
transaction_dictionary.c xbps_transaction_prepare: if ENOSPC, keep the transaction dictionary. 2015-06-20 09:48:21 +02:00
transaction_ops.c libxbps: continue updating all pkgs if xbps is uptodate. 2015-03-29 11:06:18 +02:00
transaction_package_replace.c libxbps: remove "skip-obsoletes" handling; unnecessary with the mtime checks. 2015-02-26 19:51:03 +01:00
transaction_revdeps.c libxbps: make the vpkg_provider_and_revdeps_downgrade test case work. 2015-02-10 10:55:05 +01:00
transaction_shlibs.c lib/transaction_shlibs.c: add a printf to see what's going on. 2015-03-07 08:02:39 +01:00
transaction_store.c xbps_transaction_store: print repo too. 2015-02-05 10:26:53 +01:00
util_hash.c libxbps: open fds with O_CLOEXEC to avoid warnings of leaked fds. 2015-04-15 21:02:38 +02:00
util.c xbps_symlink_target: rename var to avoid shadowing a global var. 2015-02-19 11:44:10 +01:00
verifysig.c Introduce xbps_plist_{array,dictionary}_from_file(). 2015-05-28 10:15:05 +02:00