"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Re: fix bogus 'permission denied' error during updates
To:
gameoftrees@openbsd.org
Date:
Sun, 20 Jun 2021 16:36:53 +0200

Download raw body.

Thread
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