]> git.ipfire.org Git - thirdparty/shadow.git/commit
Improve the login.defs unknown item error message
authorSerge Hallyn <serge@hallyn.com>
Wed, 4 Oct 2023 15:38:48 +0000 (10:38 -0500)
committerSerge Hallyn <serge@hallyn.com>
Fri, 20 Oct 2023 23:46:23 +0000 (18:46 -0500)
commitfa68441bc4be8edeaad8d104344e987b31ed44e6
tree33924d961624ca839cc75f91829aaf14f95043bd
parentd73f480ddc47acfa7bb71587c703f741e46f1033
Improve the login.defs unknown item error message

Closes #746

Only print the 'unknown item' message to syslog if we are
actually parsing a login.defs.  Prefix it with "shadow:" to make
it clear in syslog where it came from.

Also add the source filename to the console message.  I'm not
quite clear on the econf API, so not sure whether in that path we
will end up actually having the path, or printing ''.

Signed-off-by: Serge Hallyn <serge@hallyn.com>
lib/getdef.c
lib/getdef.h
src/groupadd.c
src/useradd.c