Document length limit for the process field in the inittab. Patch
from Johannes Truschnigg and Debian.
This commit is contained in:
parent
1b91c378b9
commit
a05987e281
@ -77,6 +77,8 @@ sysvinit (2.89dsf) UNRELEASED; urgency=low
|
|||||||
reduce the amount of failure that can happin in that function.
|
reduce the amount of failure that can happin in that function.
|
||||||
* Adapt bootlogd TIOCCONS call to kfreebsd. Patch from Mats Erik
|
* Adapt bootlogd TIOCCONS call to kfreebsd. Patch from Mats Erik
|
||||||
Andersson and Debian.
|
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
|
-- Petter Reinholdtsen <pere@hungry.com> Sun Apr 11 11:28:55 CEST 2010
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ a `+' character,
|
|||||||
.B init
|
.B init
|
||||||
will not do utmp and wtmp accounting for that process. This is needed for
|
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
|
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
|
.PP
|
||||||
The \fIrunlevels\fP field may contain multiple characters for different
|
The \fIrunlevels\fP field may contain multiple characters for different
|
||||||
|
@ -1365,7 +1365,7 @@ void read_inittab(void)
|
|||||||
if (rlevel && strlen(rlevel) > 11)
|
if (rlevel && strlen(rlevel) > 11)
|
||||||
strcpy(err, "rlevel field too long (max 11 characters)");
|
strcpy(err, "rlevel field too long (max 11 characters)");
|
||||||
if (process && strlen(process) > 127)
|
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)
|
if (action && strlen(action) > 32)
|
||||||
strcpy(err, "action field too long");
|
strcpy(err, "action field too long");
|
||||||
if (err[0] != 0) {
|
if (err[0] != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user