From: Christian Weisgerber Subject: Re: fix bogus 'permission denied' error during updates To: gameoftrees@openbsd.org Date: Sun, 20 Jun 2021 16:36:53 +0200 Stefan Sperling: > When 'got update' deletes a file in the root directory of the work tree > and the parent directory of this work tree isn't writable then the call > to rmdir() results in EPERM. EACCES, actually. > With the patch below we do not attempt to delete the work tree root anymore. > I have extended a corresponding test case to check for this bug. > This test now fails like above if lib/worktree.c is not patched. ok -- Christian "naddy" Weisgerber naddy@mips.inka.de