Skip to content

Wrong group assumptions in test_make_cred #95

@brvtalcake

Description

@brvtalcake

Describe the bug
When trying to install from AUR, the test test_make_cred failed at line 535 (which is still there in the main branch).

To Reproduce
Steps to reproduce the behaviour:

  1. Login as any user or switch user (on my system I did su pkg-builder)
  2. Log into / switch to a different group than the main user's group (on my system again, I did sg system-update, which I created as a standalone group, but the behaviour should be the same with any group as far as its GID is different from user's corresponding group's)
  3. Install from the AUR (in my case paru -Syu dosr). It seems to install v3.2.4-1. In my case I gave the system-update group permission to run sudo --user=root pacman ..., which is usually ran by pacman wrappers (i.e. I basically tried to implement some basic kind of RBAC myself)
  4. Paru should run the tests (at least by default, I suppose, since I didn't change anything) and you should see the error

Expected behaviour
I'm pretty sure this assert_eq! should not exist ? At least not in distributed code ?

Desktop (please complete the following information):
Not a desktop but (arch-)chrooted Arch from Arch LiveCD (but otherwise any OS with GIDs) through ssh while trying to setup my VPS. Not really relevant, anyways, though.

Additional context
I just hope the project doesn't rely on such assumption in its crucial parts ?

PS : I apologize beforehand if I later do not reply. I tend to have very little motivation and attention spans 😬 (and that would have nothing to do with me not wanting to talk to god-knows-who)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions