plan9fox/sys/src
Ori Bernstein 2204634275 git/fetch: ensure we clean packfiles on failure
When pulling into a git repository that is group
writable as a non-owner, the pack file is left
in place because we do not have permission to
remove it.

We also leave it behind if we bail out early due
to an error, or due to only listing the changes.

This pushes down the creation of the file, and
cleans it up on error.

thanks to Anthony Martin for spotting the bug.
git/fetch: ensure we clean packfiles on failure

When pulling into a git repository that is group
writable as a non-owner, the pack file is left
in place because we do not have permission to
remove it.

We also leave it behind if we bail out early due
to an error, or due to only listing the changes.

This pushes down the creation of the file, and
cleans it up on error.

Also, while we're here, clean up index caching,
and ensure we close the fd in all cases.

thanks to Anthony Martin for spotting the bug.
2021-07-17 00:10:44 +00:00
..
9 archacpi: make *acpi=1 the default 2021-07-15 16:07:54 +00:00
ape
boot
cmd git/fetch: ensure we clean packfiles on failure 2021-07-17 00:10:44 +00:00
games games/opl3: use correct sampling rate 2021-05-05 16:57:19 +02:00
lib9p lib9p: remove Srv.srvfd, make postsrv() and threadpostsrv() return the mountable file descriptor, update documentation 2021-05-01 19:58:58 +02:00
libaml libaml: fix gc bug, need to amltake()/amldrop() temporary buffer 2021-07-14 17:04:40 +00:00
libauth
libauthsrv
libavl
libbin
libbio
libc libc: add encode(2) variants for custom alphabets 2021-07-03 20:03:17 +00:00
libcomplete
libcontrol
libdisk
libdraw
libdtracy
libfis
libflate
libframe
libgeometry
libhtml
libhttpd
libip
libjson
liblex
libmach
libmemdraw
libmemlayer
libmp
libndb
libplumb
libregexp
libsat
libscribble
libsec libsec: take just the CN part of Distinguished Name in subjectAltName 2021-07-08 20:20:09 +00:00
libstdio
libString
libsunrpc libsunrpc: work around arm64 compiler bug in sunStringUnpack() 2021-03-29 17:13:50 +02:00
libthread threadimpl.h: remove Printsize as well (unused) 2021-06-20 14:59:10 +00:00
libttf
libventi
mkfile
mkfile.proto /sys/src: add arm64 to installall list 2021-06-21 03:34:47 +00:00