Commit Briefs

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


f6912001af Stefan Sperling

spawn more pack file helpers again now that leaks got fixed

/usr/src updates have become slower for some reason and my best guess is that caching of packed data has become less effective with df613bb4d8662c28a9888714a80ca572bff9d924 (leaks were subsequently fixed by 2cb49fa8fb84f3a8fc2eb6036a6bd9b64c57e347 and by 0dd5271bd8f2a4f92ac3536fcc493eebc39b86e5)






efa2b6f7f7 Stefan Sperling

another typo fix