Commits
- Commit:
d356bf7597557e6a57136825b8429c1117e70469
- From:
- Josh Rickmar <jrick@zettaport.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
display GMT offset in cat command
ok stsp
- 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:
4049b748bf8123e8db01bb537b375091eaeb5d80
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix fd leak in got_fetch_pack, ok stsp@
- Commit:
9389bcf69b554cb6da81ece9452257fa11011dd2
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: fix use of d->namlen
As done elsewhere, d->namlen is not a portable field from readdir,
therefore simualte this via the strlen of the directory name instead.
- Commit:
f9a643e8b740363d5cf068472042b500426fa0b2
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix pack.sh test failure from reuse-deltas patch by tweaking progress output
- 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:
d2f35ef7f79f7511fae51312769f01f12f9a793e
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
shrink the width of formatted output fields to their expected size
Replace FMT_SCALED_STRSIZE with (FMT_SCALED_STRSIZE - 2) as field
width when formatting output for printing. FMT_SCALED_STRSIZE
includes space for a nul byte and a minus sign. Output values
are expected to be always positive here.
ok stsp
- Commit:
90dfa2bf41872a0f074ac2cea3b45d6ba3c77de6
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
consistently match size of hash variables to that returned by murmurhash
ok millert stsp
- Commit:
ebdfb05bcdd625d0722a8b72220647eb014997fb
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: add murmurhash2 to deltify test
Add missing include for the deltify test now that it depends on
murmurhash2.
- Commit:
47d17b68f906d072833d118bf6275881baac9a36
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
new test: `got diff' on files matched by an ignore pattern
- Commit:
b7bf7afc7c0ce730a430ef6e47ca359c97fef2ff
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
use murmurhash instead of sha1 for deltification blocks; suggested by ori
- Commit:
9f656b2046b04aeb0528704d098cf48c329ce991
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
reduce minimum deltification chunk size to 32; suggested by ori
- Commit:
fe1d86855517f122428c120d5c41f4af72120637
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix 'got diff' on files which match an ignore pattern; found by Omar Polo
- Commit:
8f666e6727a955b77826be69882851792a8a1bac
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
tweak error reporting due to invalid numbers
Use the same idiom as in the strtonum(3) manpage which produces a more
readable error message.
OK kn, stsp
- Commit:
9c8bf18964a7751ad34d51de04bf84f96956cc9e
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
set zlib output buffer length properly after resizing the output buffer
ok millert naddy
- Commit:
f6a55b4019ef1be061bac7e315541d2389a7bd1d
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix infinite loop in got-index-pack for pack files >= 4GB in size
Because of a missing range check our zlib wrapper would end up
calling zlib over and over with zero bytes of input.
Problem reported by semarie and naddy.
Fixed with help from millert@.
ok millert naddy
- Commit:
17431c138a938066f1f24d60a05fcbc2934b2dfc
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
improve error message due to malformed `author' in got.conf
tweak and ok stsp@
- Commit:
84bf00a657aa272bf25d00785cfc8302c60e2fca
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
improve 'got add' error message if file does not exist; reported by Timo Myyrä
ok tracey
- Commit:
9b31ed6506b8e65348a504355903c213b90125d4
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix loose object file header parser for zero-length headers
ok millert tracey
- 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:
a75b210eed1d491d23b0cfef8ac3a51607bf2c19
- From:
- Omar Polo <op@omarpolo.com>
- Date:
dropping unused includes
- Commit:
9cefc4c1a6b51bc17dbf315d7b79a1da8a8dc846
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix landlock usage: handled_access_fs must list all actions
The ruleset's handled_access_fs has to list all the defined actions
because otherwise missing ones are implicitly permitted. Thus, the
previous version ended up allowing "almost everything" except reading
files.
Original diff from Mickaël Salaün, thanks!
ok thomas
- Commit:
5e997b01390a9de2b9cefa7c44375da470e447c6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
s/ENOTSUP/EOPNOTSUPP/
linux defines these errors to the same values, but the landlock doc uses
`EOPNOTSUPP' consistently. Spotted initially by brynet@ and reminded by
Mickaël Salaün, thanks!
ok thomas
- Commit:
97799ccd4b67a81f97039305d4fdd66588da9962
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
portable: add support for landlock
landlock is a new set of linux APIs that is conceptually similar to
unveil(2): the idea is to restrict what a process can do on a
specified part of the filesystem. There are some differences in the
behaviour: the major one being that the landlock ruleset is inherited
across execve(2).
This just restricts the libexec helpers by completely revoking ANY
filesystem access; after all they are the biggest attack surface. got
send/fetch/clone *may* end up spawning ssh(1), so at the moment is not
possible to landlock the main process.
From Omar Polo.
- Commit:
1f480907e29bc783454427371277ef33a25658e4
- From:
- Stefan Sperling <stsp@stsp.name>
- Via:
- Thomas Adam <thomas@xteddy.org>
- Date:
fix 'got status' reporting all directories on NFS mounts as unversioned
Problem found and fix tested by Ted Bullock.
ok millert, naddy