9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] git fallout: fix your permissions
@ 2021-07-12  2:48 ori
  0 siblings, 0 replies; only message in thread
From: ori @ 2021-07-12  2:48 UTC (permalink / raw)
  To: 9front

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-12  2:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12  2:48 [9front] git fallout: fix your permissions ori

9front - general discussion about 9front

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/9front

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 9front 9front/ http://inbox.vuxu.org/9front \
		9front@9front.org
	public-inbox-index 9front

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.9front


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git