Commits
- Commit:
e2752401e9de43f1f8c1e3a1601ec073cccab548
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
factorize imsg_clear calls after imsg_flush failures
imsg_clear frees and closes resources allocated as part of enqueueing
imsgs so it's a no-op after reads.
discussed with and ok stsp@
- Commit:
f9c2e8e5d5310b6b1cd22dcfc8f9f5d1d7a16d19
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
reuse existing deltas when creating pack files
tested by thomas, naddy, and myself
- Commit:
67af9f37413a2529ee144aa57def023a428dd996
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix double-free and double-close issues in error paths of got_packidx_open()
- Commit:
b490237f809cf7593cfa7de0bbb48050e27993a6
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix file corruption regression in 'got checkout' caused by commit db696021
got-read-pack must rewind its files temporary files before reusing them.
Problem reported by naddy
ok tracey naddy
- Commit:
1944573a096bbe0d2b80dd1644f01383b9353af5
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
add missing checks for reads beyond the mapped memory area of a pack file
- Commit:
ec138a87e1d71bea746b7d4586ac24aa476e825d
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix bogus "object not found" errors when object ID begins with 00
ok thomas_adam
- Commit:
48b4f239031ad66225f64bd6745f4a57a35c3a0f
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
wrap overlong lines
- Commit:
fc63f50d9b54fdd7a892d5a770542bdb07fb05d1
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
add O_CLOEXEC (close-on-exec) to openat(2) calls
suggested by millert
ok thomas_adam
- Commit:
92a9e85d28a30997176ce0d3c2915e3ea70782c7
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: add FreeBSD support
This adds the capability to compile got-portable on FreeBSD.
- Commit:
dd038bc6ec835ad3fd3c0b5303b8af9ad506c8cc
- From:
- Thomas Adam <thomas@xteddy.org>
- Via:
- Thomas Adam <thomas.adam@smoothwall.net>
- Date:
portable: initial Linux compilation
This commit modifies the GoT main branch to be able to compile it under
linux.
- Commit:
c3564dfafd6bf9ca36c049cf02a1432ce3e66c3f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
don't scan pack index offsets for large values if pack file is < 2GB
This saves an iteration over the entire h->offsets array when opening
a pack index which should not contain large offsets in the first place.
ok millert@
- Commit:
1124fe406f09a7d5d995da60e6251e3440226d40
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
handle pack index files which lack a corresponding pack file
ok millert
- Commit:
aea75d87862c3ab54d0b8c5e5e280e13efe8ec4a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make got_packidx_get_packfile_path() usable for callers who only have a path
- Commit:
dbdddfee1482b50ca8c4a0be06e4fec6a59fb9f4
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
switch from SIMPLEQ to equivalent STAILQ macros
The singly-linked tail queue macros were added to OpenBSD 6.9 and
are more widely available on other systems.
ok stsp
- Commit:
c4330effadfe340c07b5709bc805de6a0b3764a7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
expose got_pack_parse_ref_delta() for library-internal use
This will be needed by a future 'gotadmin listpack' command.
- Commit:
02828bfdd5b1fe79298e576b2c28d252509fa089
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
expose got_packidx_get_object_offset() for library-internal use
This will be needed by a future 'gotadmin listpack' command.
- Commit:
b4f3757062b79ae08d3c386051bbf6c37902ec35
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
mark got_pack_stop_privsep_child() static; it is only used inside pack.c
- Commit:
cc2a8ef4d11a18e731acc4e3af92748ead29505b
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
fix a leaky ibuf. ok stsp
- Commit:
509c99732c4da3e3b74c17d09aba5a38b701716f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add got_packidx_get_packfile_path() for library-internal use
- Commit:
ac62b7128d19ff467525fe11e07efdbc47c53bb5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
when reading a pack index byte-swap fields at compile-time where possible
suggested by mpi@ ages ago
- Commit:
08578a35f60be8657db97b705f27a55ab61850c8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make close(2) failure checks consistent; check 'close() == -1' everywhere
ok millert, naddy
- Commit:
6d5a9006ab2a400b488b9e93ec9647fb9b2a0930
- From:
- Yang Zhong <yzhong@freebsdfoundation.org>
- Date:
add fd field to got_repository, modify got_packidx_open to use fds
These changes are intended to make got more compatible with
FreeBSD's Capsicum.
ok stsp
- Commit:
5a17689a92bb716ecff551f2a18eab30e762ed6b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix matching the object ID of the first object in a pack index
An object ID which appears first in a pack index was wrongly ignored by
got_packidx_match_id_str_prefix(). The result was a spurious "object not
found" error when this object ID was passed on the command line.
Reported by jrick on freenode who was lucky enough to this edge case!
- Commit:
78fb09675bee22e8ae24eb8bd9a86d8a04b17a7e
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
use the POSIX standard endian functions and explicitly include <endian.h>
ok stsp
- Commit:
81a12da58651e79380d81dea7020bf6af20bb28b
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
do not rely on <zlib.h> to pull in <unistd.h>
ok stsp