Commits
- Commit:
91d845ad5d8f8897e51d3f9233a9ea3e89fee80d
- From:
- Josh Rickmar <jrick@zettaport.com>
- Date:
fix tag signing when the key file does not exist
This should fail without creating any tag. Before, ssh-keygen(1)
would print an error to stderr, but got would create an unsigned tag.
ok op@
- Commit:
4d5ee9564a9e46a1f634f619833c62f636cfbdc1
- From:
- Josh Rickmar <jrick@zettaport.com>
- Date:
create and verify tags signed by SSH keys
This adds a new -s flag to 'got tag' that specifies the signer
identity (for example, a key file) of the tagger. The tag object will
include a signature that validates each of the tag object headers and
the tag message.
Verifying these signed tags requires maintaining an allowed signers
file which maps signer identities (i.e. the email address of the
tagger) to SSH public keys. See ssh-keygen(1) for more details of the
allowed signers file. After creating this file and providing the path
to it in got.conf(5) using the allowed_signers option, tags may be
verified using with 'got tag -V tag_name'. The return code will be
non-zero if a signature fails to verify.
ok stsp@
- Commit:
f9d376997dd2e84bf84c3c9a4da842d1b5565e9d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move got_opentempfd() out of lib/diff.c again
ok tracey
- Commit:
61af9b215c06bece11deb27d941b390b81e0f8c6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
implement support for commit coloring in got-read-pack for speed
ok op, tracey
- Commit:
a7472cb3288c2323830462f53706b013f33c444e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
check return value of RB_INSERT; ok + memleak fix by op@
- Commit:
70cc983209a406b57dc37c4515e1cb9a038e0f2c
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
move got_errors[] table into a single compilation unit (error.c)
ok stsp
- Commit:
5c02d2a555dc01ac06db5a47b8c81adf2bf3f8a6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
for portability, handle errno variations upon open(2) failure with O_NOFOLLOW
Problem pointed out by naddy for FreeBSD -portable.
Discussed with millert, thomas adam, and naddy.
- Commit:
9a02f8b79138972ddde059e5683108d07b409289
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
switch to strerror_r(3) in error.c for thread-safety
- Commit:
c884fd0a8efbd1c76504f46ddb5b688134983a3a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
introduce got_custom_error array to support multiple errors in flight
This is still not thread-safe but at least avoids errors overwriting each
other in single-threaded contexts.
- Commit:
73e7eb7d1cfead096b0297377490aeaac95a73f5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add got_error_fmt()
got_error_fmt() could eventually replace got_error_path() which has already
been used to construct errors with strings that are not actually paths...
ok millert@
- Commit:
4cc6a5a5fa3d5a5351d59385e614a0a78d167987
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add got_error_from_errno_fmt() for more flexibility in error messages
suggested by and ok millert
- Commit:
16aeacf7088dcd3cd5e654af46a3015cecf41426
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use size_t for loop indices to avoid signedness warnings; from emaste@freebsd
- Commit:
cc483380c54d31f8ddf61787337cefe1ccf3581b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix NULL deref in got_error_from_errno via got_error_uuid (found by jasper)
- Commit:
7d45c7f1ef956f45432c26a99b9d874dfac2cfdc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
error.c: use <limits.h> instead of <sys/param.h>
- Commit:
df056ada35bdbbcc6e248b7ec0ec8a7d25fd5147
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
introduce got_error_path()
- Commit:
638f9024045bbe2420143f8868dcc484c231c634
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
rename got_error_prefix_errno() to got_error_from_errno()
- Commit:
2af4a0419220dba40c25f0f6af548638b5ae3a1b
- From:
- joshua stein <jcs@jcs.org>
- Date:
got_error_set_errno: take a char arg to pass to got_error_prefix_errno
$> got rm a
got: : No such file or directory
becomes
$> got rm a
got: /path/to/a: No such file or directory
- Commit:
230a42bdc60c6136d2a5ce65bf1a2f26d990c096
- From:
- joshua stein <jcs@jcs.org>
- Date:
got_error_from_errno -> got_error_prefix_errno
also add got_error_prefix_errno2 and got_error_prefix_errno3 which
should hopefully all be merged into a single function with variadic
args (but can't alloc mem)
- Commit:
48b8b0ebe312124b17b290c38f2bbd0b5fbc1338
- From:
- joshua stein <jcs@jcs.org>
- Date:
error: introduce got_error_prefix_errno for better errno messages
- Commit:
10689f3a4e8324ff47f0192606e1b0962435ec46
- From:
- joshua stein <jcs@jcs.org>
- Date:
error: fix definition of got_error_from_errno
- Commit:
095892882c4ccc2f584998552200561f340e060f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add got_error_uuid()
- Commit:
2aa0475caa333b7d3f25991b11b09ab048e8e6de
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add got_error_not_ref()
- Commit:
8fa9fd14daaef1c185a6751487bf26fe0b14e9f2
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove unnecessary cast
- Commit:
91a3d81fcf77040d5c432c86b5d4aebbec565468
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
introduce got errors with custom messages; add one for ERR_NO_OBJ
- Commit:
1a76625ff1fb0585ad07bacb1a753bf01939f910
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'tog log' use background thread and introduce global mutex