Commits


CHANGES for 0.130


sync dist file list


declare a gotsys repository in gotsys.conf.5 examples to avoid a syntax error


use "hash algorithm" in gotsys.conf.5 examples to make this option more visible


fix some tests which used to assume that SHA1 is the default


default to using SHA256 object IDs in newly created repositories Also flip the default for all our test suites to SHA256. Discussed with Thomas Adam for -portable.


use PATH_MAX instead of _POSIX_PATH_MAX because the latter is too small libc APIs such as realpath(3) implicitly assume an output buffer which can store at least PATH_MAX bytes. Using _POSIX_PATH_MAX instead is not safe for such APIs. Pointed out by martijn@, discussed with thomas adam for -portable


use realpath(p, NULL) instead of realpath(p, buf) Some buffers use _POSIX_PATH_MAX instead of PATH_MAX and might overflow. Pointed out by martijn@


move buffers of size GOT_PKT_MAX off the stack unbreaks the build on OpenBSD/alpha for martijn@


wait for test VM to stop in gotsysd regress 'make stop_test_vm' target


revise send_info fix: send an invalid hash algorithm instead of erroring out gotsysctl looks at this algo field to find out whether a printable commit-ID is present in the structure.


add support for sha256 repositories to gotsys.conf and gotsysd


reject unknown object-ID hash algorithms in gotsysd's send_info()


fix commit ID buffer size in write_gotsys_db_file() and fix a length check


typo in gotd test README


test gotd with the announced hash algorithm not corresponding to object IDs


fix wrong pkt-lengths and commit hashes in send_incompatible_hash_algo test


remove a debugging line from send_bad.sh which I committed by mistake


check how gotd reacts when the client sends with the wrong hash algorithm


fix up wrong want-line header lengths in regress/gotd/request_bad.sh


improve error message shown by got-send-pack if hash algo is incompatible


improve error message shown by got-fetch-pack if hash algo is incompatible


remove sha256 caveat note from gotd manual page


don't rely on pack->algo where not really needed


fix algo self-assignment in open_tree(); spotted by Runxi Yu