freebsd-ports/devel/got/files/patch-libexec_got-read-pack_got-read-pack.c
Christian Weisgerber 40eba94b57 devel/got: update to 0.73
User-visible changes:
- got patch: use diff3 to merge changes if possible
- tog: alias C-b/C-f to scroll page back/forward with b/f
- tog: make SPACE page down in all views
- tog: allow prefixing movement keys with count modifier
- always show commit or tree IDs in diff header, in order to help 'got patch'
- tog: implement support for horizontal splitscreens
- switch 'tog diff' and 'tog blame' to Myers diff by default for speed
- make the diff algorithm used by 'tog diff' and 'tog blame' configurable
- got patch: handle mangled whitespace
- fix "imsg_add TREE_ENTRY: Result too large" error on i386
- create and verify tags signed by SSH keys
- tog: add C-g/backspace key map to abort compound commands
- rename got.conf(5) fetch-all-branches to fetch_all_branches for consistency
- rename got.conf(5) mirror-references to mirror_references for consistency
2022-07-04 15:02:42 +00:00

22 lines
666 B
C

--- libexec/got-read-pack/got-read-pack.c.orig 2022-07-04 14:48:30 UTC
+++ libexec/got-read-pack/got-read-pack.c
@@ -14,6 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <sys/capsicum.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/queue.h>
@@ -1917,6 +1918,11 @@ main(int argc, char *argv[])
/* revoke access to most system calls */
if (pledge("stdio recvfd", NULL) == -1) {
err = got_error_from_errno("pledge");
+ got_privsep_send_error(&ibuf, err);
+ return 1;
+ }
+ if (cap_enter() == -1) {
+ err = got_error_from_errno("cap_enter");
got_privsep_send_error(&ibuf, err);
return 1;
}