Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look for $USER for the username before reading /etc/passwd #2926

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

DaanDeMeyer
Copy link
Contributor

Let's take $USER into account if set before reading /etc/passwd for the username. This gives a way out for environments where the uid of the user does not have an entry in /etc/passwd.

Let's take $USER into account if set before reading /etc/passwd
for the username. This gives a way out for environments where the
uid of the user does not have an entry in /etc/passwd.
Copy link
Contributor

@behrmann behrmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think as a fix it's good enough for now, but I think

mkosi/user.py Show resolved Hide resolved
@DaanDeMeyer DaanDeMeyer merged commit 125cbfd into systemd:main Jul 29, 2024
32 checks passed
@DaanDeMeyer DaanDeMeyer deleted the nobody branch July 29, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants