sshd didn't run after upgrade to FreeBSD 8.4

Scot Hetzel swhetzel at gmail.com
Sat Jun 22 06:21:46 UTC 2013


On Thu, Jun 20, 2013 at 4:28 AM, Lee Dilkie <lee at dilkie.com> wrote:
>
> On 6/19/2013 8:24 PM, Kimmo Paasiala wrote:
>> Ok, this is crazy. If you put one space after the VersionAddendum
>> keyword you get exactly what you want, an empty VersionAddendum
>> string. If there's no space but a newline right after the
>> VersionAddendum keyword, sshd(8) complains about the line and refuses
>> to start. So this is ok (without the single quotes, they are just to
>> show the endings of the lines):
>>
>> 'VersionAddendum '
>>
>> But this is not:
>>
>> 'VersionAddendum'
>>
>> What are the OpenSSH devs thinking?
>>
>> -Kimmo
>
> I'd call it a bug.
>

crypto/openssh/servconf.c

1553         case sVersionAddendum:
1554                 if (cp == NULL)
1555                         fatal("%.200s line %d: Missing
argument.", filename,
1556                             linenum);
1557                 len = strspn(cp, WHITESPACE);
1558                 if (*activep && options->version_addendum == NULL) {
1559                         if (strcasecmp(cp + len, "none") == 0)
1560                                 options->version_addendum = xstrdup("");
1561                         else if (strchr(cp + len, '\r') != NULL)
1562                                 fatal("%.200s line %d: Invalid argument",
1563                                     filename, linenum);
1564                         else
1565                                 options->version_addendum =
xstrdup(cp + len);
1566                 }
1567                 return 0;

Looks like if you specify:

VersionAddendum none

it won't display the additional info.

-- 
DISCLAIMER:

No electrons were maimed while sending this message. Only slightly bruised.


More information about the freebsd-stable mailing list