]> git.ipfire.org Git - thirdparty/util-linux.git/commit
chfn: allow --help and --version without login.defs restrictions
authorKarel Zak <kzak@redhat.com>
Thu, 29 Jan 2026 11:50:16 +0000 (12:50 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 29 Jan 2026 11:50:16 +0000 (12:50 +0100)
commitd6ef492f12eb30b5617a64df9bb610338a677df2
tree76d0e96c2428f5f09e2b755110fb01df10ffddf4
parent02ff631527f2e1a7b166c786e1900928a393d983
chfn: allow --help and --version without login.defs restrictions

Parse command line arguments twice: first pass handles --help and
--version before restrictions are applied, second pass enforces
login.defs CHFN_RESTRICT settings for field options.

Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/chfn.c