[changed subject line]
On 10/21/2013 04:16 AM, Nathan Ferch wrote:
> When installing gitolite, there's several world writable files and
[snipped]
Ouch! Thanks for catching this.
WHAT IT IS
- This is a bug introduced in
fa06a34 set umask as early as possible (Sep 3rd)
- It only affects **fresh** installs made after Sep 3. See below for
more on this.
CURRENT STATUS
- I have just pushed out v3.5.3.1 to fix the problem.
WORKAROUND
- EXISTING INSTALLS: if it affects you (see next section for details),
you need to do a one-time 'chmod -R go-rwx' (or such) on
~/.gitolite.rc, ~/.gitolite, and ~/repositories/gitolite-admin.git
You don't actually need to upgrade, since the bug only shows up in
the very first "gitolite setup" command that runs *before* the rc
file is created. Once the rc file exists, this bug does not happen.
- NEW INSTALLS: just use v3.5.3.1 (pushed a few minutes ago).
- RPM/DEB/etc users: see below; you may not be affected at all.
WHO IT AFFECTS
- This does NOT affect anyone who installed v3.5.2 or earlier, even if
you later upgraded to the offending commit or beyond. That is, only
the initial install counts.
- This DOES affect anyone who did a *fresh* install using fa06a34 or
later (i.e., sometime since Sep 3rd).
If you only use the latest tagged version instead of following
"master", it affects you if you did a fresh install using v3.5.3.
- Since package maintainers pick up only versioned tags, and v3.5.3
was pushed only a week ago, it may not have propagated yet.
For example, at this time, Fedora still has v3.5.2, and when the
maintainer next picks it up, he will pick up v3.5.3.1, so Fedora RPM
users should not be affected. I hope Debian is the same!
sitaram
PS: Nathan: I blindly "approved" your post without reading even the
subject line carefully. As a result, this has become "announced",
making it imperative that a fix be pushed out asap. Normally I
inform the package maintainers first before making a more general
announcement.
On the plus side, existing users are not really affected, as
explained above. But in terms of process, I still screwed up (over
and above the bug itself!)
At least part of the problem is my time zone, and my habit of waking
up at 5am-ish and approving any new posts before getting my morning
cuppa, checking work emails, and then coming to gmail. Sigh...