diff --git a/doc/Changelog b/doc/Changelog index 191147d..e75cd82 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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 Sun Apr 11 11:28:55 CEST 2010 diff --git a/man/inittab.5 b/man/inittab.5 index e1d739d..80aa084 100644 --- a/man/inittab.5 +++ b/man/inittab.5 @@ -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 diff --git a/src/init.c b/src/init.c index a12b495..fc1a131 100644 --- a/src/init.c +++ b/src/init.c @@ -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) {