Document length limit for the process field in the inittab. Patch

from Johannes Truschnigg and Debian.
This commit is contained in:
Petter Reinholdtsen 2014-02-07 17:41:58 +00:00
parent 1b91c378b9
commit a05987e281
3 changed files with 4 additions and 2 deletions

View File

@ -77,6 +77,8 @@ sysvinit (2.89dsf) UNRELEASED; urgency=low
reduce the amount of failure that can happin in that function.
* Adapt bootlogd TIOCCONS call to kfreebsd. Patch from Mats Erik
Andersson and Debian.
* Document length limit for the process field in the inittab. Patch
from Johannes Truschnigg and Debian.
-- Petter Reinholdtsen <pere@hungry.com> Sun Apr 11 11:28:55 CEST 2010

View File

@ -66,7 +66,7 @@ a `+' character,
.B init
will not do utmp and wtmp accounting for that process. This is needed for
gettys that insist on doing their own utmp/wtmp housekeeping. This is also
a historic bug.
a historic bug. The length of this field is limited to 127 characters.
.\"}}}
.PP
The \fIrunlevels\fP field may contain multiple characters for different

View File

@ -1365,7 +1365,7 @@ void read_inittab(void)
if (rlevel && strlen(rlevel) > 11)
strcpy(err, "rlevel field too long (max 11 characters)");
if (process && strlen(process) > 127)
strcpy(err, "process field too long");
strcpy(err, "process field too long (max 127 characters)");
if (action && strlen(action) > 32)
strcpy(err, "action field too long");
if (err[0] != 0) {