Commit Briefs

b3a605cef0 Stefan Sperling

no need to zero memory in got_inflate_to_mem_mmap()


f2c5fe0e01 Stefan Sperling

no need to zero memory in got_inflate_to_mem_fd()


d1078c40c0 Stefan Sperling

add a TODO item



6dc3b75a27 Stefan Sperling

no need to zero memory in got_inflate_to_mem()


b48e2ddb7c Stefan Sperling

set datasize limit of got-read-pack helpers to maximum


1a35c1bc90 Stefan Sperling

fix double-frees in error path when resolving deltas fails


78527a0aa0 Stefan Sperling

move a comment to a better place and expand it


cc79381d1a Stefan Sperling

NUL-terminate empty logmsg buffer for strlcat(3)

Because the logmsg output buffer was not NUL-terminated after allocation, strlcat(3) could append log message contents copied from the temporary file at a wrong memory location. In the case observed by me, this bug resulted in a broken commit object.


d4592c7c7a Stefan Sperling

catch fopen(3) failure in collect_commit_logmsg()


c932eeeb83 Stefan Sperling

make 'got update' bump the base commit ID of unchanged files

This change makes it actually possible to get around commit-time out-of-dateness by running 'got update'. The test added with this commit shows that our out-of-dateness check is currently too simplistic; an update is required between any two commit operations! It would be better to allow commits to proceed until a situation arises where file content must be merged.





8cbe58099b Stefan Sperling

plug /dev/null file descriptor leaks in diffreg.c


8656d6c4d5 Stefan Sperling

make struct got_commitable opaque to library users



32e06003d3 Stefan Sperling

add another TODO item


a351b7ff43 Stefan Sperling

add a tog TODO item


7d45c7f1ef Stefan Sperling

error.c: use <limits.h> instead of <sys/param.h>


df056ada35 Stefan Sperling

introduce got_error_path()


b28fe61a13 Stefan Sperling

apply_unveil(): use GOT_DIR_NOT_EMPTY


196d54c7a4 Stefan Sperling

define message for error code GOT_ERR_DIR_NOT_EMPTY


59544d4d62 Stefan Sperling

fix wording in error message


2ee32b237b Stefan Sperling

fix build with -DGOT_OBJ_CACHE_DEBUG