[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55892] [PATCH] pull: Fail if cache directory ownership is suspect.
From: |
Maxime Devos |
Subject: |
[bug#55892] [PATCH] pull: Fail if cache directory ownership is suspect. |
Date: |
Fri, 10 Jun 2022 23:55:28 +0200 |
User-agent: |
Evolution 3.38.3-1 |
Tobias Geerinckx-Rice via Guix-patches via schreef op zo 05-06-2022 om
02:04 [+0200]:
> Hi Guix,
>
> Another one in the ‘low-level support noise paper-cut’ series.
> The XXX comment would not land upstream, I think.
>
> I didn't test this on a foreign distribution. My understanding is
> that distributions where sudo already defaults to ‘-i’ won't throw
> the warning nor suffer from the problem.
>
> Kind regards,
>
> T G-R
>
Concept looks sounds to me!
Nitpick:
+ (let ((our:user (passwd:name (getpwuid our:uid)))
+ (dir:user (passwd:name (getpwuid dir:uid))))
what if the current user does not have an entry in /etc/passwd or
equivalent? (E.g. if the user accidentally removed an entry in
/etc/passwd on a foreign system and then runs "guix pull" & "guix shell
THE_EDITOR" to get their favourite editor to edit /etc/passwd back?)
Maybe in that case, it should be reported as NNNN (NNNN = user number)?
Or would that be simply considered unsupported?
Greetings,
Maxime.
signature.asc
Description: This is a digitally signed message part