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

Rewrite chuser() for simplicity and correctness #1203

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Commits on Nov 4, 2024

  1. Rewrite chuser() for simplicity and correctness

    - Use unambiguous variable names (w/o package name conflict).
    - Fail on invalid input such as the empty string or `:`.
    - Do not change group without user, i.e. fail on `:group`.
    - Parse input using mnemonic APIs.
    - Do not juggle between integer types.
    - Unset supplementary groups.
    - Use setres[ug]id(2) to match the idiom of OpenBSD base programs.
    
    Includes/Supersedes yggdrasil-network#1202.
    Fixes yggdrasil-network#927.
    
    I only tested on OpenBSD (so far), hence the split, but other systems
    should just work.
    klemensn committed Nov 4, 2024
    Configuration menu
    Copy the full SHA
    2a8ddac View commit details
    Browse the repository at this point in the history