config file line length limit

Scott Neugroschl scott_n at
Tue Dec 20 06:32:46 AEDT 2016

-----Original Message-----
Don Fong,  Monday, December 19, 2016 10:00 AM

Damien, thanks for your answer.  any comments on ancillary issues?

* should the limit be documented, or removed?  or should the limit just be increased?
SAN> There's a third option.  If the line is found to be longer than 1022 (1024?) characters, it should be flagged as an error in the config file.  This is in conjunction with the documentation option.

while (fgets(line, sizeof(line), f)) {
/* NEW */   if (line[strlen(line)-1] != '\n') generate-an-error();

/* Update line number counter. */
    if (process_config_line_depth(options, pw, host,
        line, filename, linenum, activep, flags, depth)
        >> != 0)

More information about the openssh-unix-dev mailing list