]> dgit.raspbian.org Git - git-annex.git/commit
shared repository content file permissions for v9
authorJoey Hess <joeyh@joeyh.name>
Tue, 11 Jan 2022 20:36:07 +0000 (16:36 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 11 Jan 2022 20:50:50 +0000 (16:50 -0400)
commit43f9d967ff7d0ddb5c9187aefb30b2b6fc89d77f
treee69e973f94177aeac6ab3f440a251b6749e7fa4f
parentff570ad36365c21cf25309e6d1cb57900b9f5a1b
shared repository content file permissions for v9

v9 will not need to write to annex content files in order to lock them,
so freezeContent removes the write bit in a shared repository, the same
as in any other repository.

checkContentWritePerm makes sure that the write perm is not set, which
will let git-annex fsck fix up the permissions. Upgrading to v9
will need to fix the permissions as well, but it seems likely there will
be situations where the user git-annex is running an upgrade as cannot,
so it will have to leave the write bit set. In such a case, git-annex
fsck can fix it later.

Sponsored-by: Dartmouth College's Datalad project
Annex/Init.hs
Annex/Perms.hs
Annex/Version.hs