NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/58058: _SC_PASS_MAX description slightly wrong
>Number: 58058
>Category: misc
>Synopsis: _SC_PASS_MAX description slightly wrong
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 21 14:25:00 +0000 2024
>Originator: Mouse
>Release: 9.1, 5.2, and -current
>Organization:
Dis-
>Environment:
Noticed on 5.2/amd64. Also found on 9.1/amd64. cvsweb
indicates present in -current as of 2024-03-21, sysconf.3
version 1.52.
>Description:
sysconf(3) describes _SC_PASS_MAX as "The maximum length of the
password, not counting NULL.". But NULL is semantic nonsense
there; it should be "NUL", or possibly "null". (Confusion like
this is one reason I believe NULL should never be used; see
http://ftp.rodents-montreal.org/mouse/blah/2009-10-09-1.html
for more, including other reasons.)
>How-To-Repeat:
Read sysconf(3). Notice the semantic inconsistency.
>Fix:
-The maximum length of the password, not counting
-.Dv NULL .
+The maximum length of the password, not counting the terminating NUL.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML mouse%rodents-montreal.org@localhost
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
Home |
Main Index |
Thread Index |
Old Index