From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27753 invoked from network); 12 Jul 2021 02:55:25 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 12 Jul 2021 02:55:25 -0000 Received: from mimir.eigenstate.org ([206.124.132.107]) by 1ess; Sun Jul 11 22:48:51 -0400 2021 Received: from abbatoir.myfiosgateway.com (pool-74-108-56-225.nycmny.fios.verizon.net [74.108.56.225]) by mimir.eigenstate.org (OpenSMTPD) with ESMTPSA id 3f0aadfa (TLSv1.2:ECDHE-RSA-AES256-SHA:256:NO) for <9front@9front.org>; Sun, 11 Jul 2021 19:48:36 -0700 (PDT) Message-ID: <19CC89F95407BDA16AE6E544BCAB0D2C@eigenstate.org> To: 9front@9front.org Date: Sun, 11 Jul 2021 22:48:34 -0400 From: ori@eigenstate.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: private agile HTML over ACPI CSS engine Subject: [9front] git fallout: fix your permissions Reply-To: 9front@9front.org Precedence: bulk git9 was initially written with one user owning the git repo manipulating the files, so git created files with write permission for only the repo owner. When we moved to git for 9front, this was no longer the case, so we ended up creating some files that weren't group writable. This was fixed on Jun 22nd, in commit b904edadd8869787b4419ce93c1c29b5beee3556, but it seems like some people may still be running into issues that we caused. To fix it, `chmod g+w` the files that have the wrong permissions. If you want to do it in a script, I think this will do the trick: # bind in the repo bind -ac /dist/plan9front / # make sure we have an updated git chmod g+w /sys/src/cmd/git/* git/revert /sys/src/cmd/git @{cd /sys/src/cmd/git && mk all && mk install} # list files changed since conversion fixup=`{ git/query -c 4f3437a3ccde4fadf84f6de254a141cece9ca0af HEAD | grep -v '^-' | sed 's@^..@/@' } # fix them up and revert them chmod g+w $fixup git/revert $fixup