Skip to content

Conversation

@navi-desu
Copy link
Member

Fixes: #940

return true;

while (xgetline(&line, &size, fp) != -1) {
if (strcmp(line, shell) == 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe skip lines starting with #? My /etc/shells has a comment as it's first line.

Copy link
Member Author

Choose a reason for hiding this comment

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

they wouldn't match anyway (pw_shell is an absolute path afaik), but sure, simple enough

@navi-desu navi-desu merged commit 4088073 into master Nov 12, 2025
7 of 9 checks passed
@navi-desu navi-desu deleted the openrc-user-shell branch November 12, 2025 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

openrc-user-pam: skip initialization for users without a login shell

3 participants