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

rfct: /etc/login.defs #91

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

max-ishere
Copy link
Contributor

Tested with fakegreet

Btw, regex should have used (?m)^ because the first line would not be captured by \n
https://docs.rs/regex/1.11.0/regex/#grouping-and-flags

actions-rs/toolchain is archived. Rust is currently installed on GitHub
actions runners. So the action was replaced by using rustup to install a
minimal profile.

build and test staged were added.

Updated all steps to the latest version
The format is so simple that a custom parser would be much safer and
faster than using regex. The original also should have used `^` instead
of `\n`.

This is one of the steps towards removing regex as a dependecy for this
project and replacing it with parsers for the specific file formats.
@max-ishere
Copy link
Contributor Author

I would like to wait for #89 to be resolved before this gets merged

Add support for a different location of `/etc/login.defs` file and
override the assumed defaults if the file is not present.
@max-ishere
Copy link
Contributor Author

Closes #89.

@rharish101, this is ready for review.

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.

1 participant