Hi,

On Mon, Apr 06, 2026 at 09:31:19PM +0200, [email protected] wrote:
The adduser(8) man page (LOGGING section) lists message priorities as:

crit, error, warning, info, debug, trace

The actual accepted values in Debian::AdduserLogging::numeric_msglevel()
are:

trace, debug, info, warn, err/error, fatal

Thanks for spotting this.

Two mismatches:

- "warning" should be "warn" ("warning" causes die())
- "crit" should be "fatal" ("crit" causes die())

Would this fix it?


diff --git a/doc/adduser.8 b/doc/adduser.8
index c4c8f63..c9ad708 100644
--- a/doc/adduser.8
+++ b/doc/adduser.8
@@ -555,9 +555,9 @@ Every message that \fBadduser\fR prints has a priority value
 assigned by the authors.
 This priority can not be changed at run time.
 Available priority values are
-\fBcrit\fR,
+\fBfatal\fR,
 \fBerror\fR,
-\fBwarning\fR,
+\fBwarn\fR,
 \fBinfo\fR,
 \fBdebug\fR,
 and

The config file comments in /etc/adduser.conf are correct. The man page
appears to use syslog priority names (from the logmsglevel() translation
map) rather than the config-facing names.

That's what happens when you write the docs first. Sorry.

Greetings
Marc


--
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

Reply via email to