problem of adding a new option of sshd

Gert Doering gert at greenie.muc.de
Fri Mar 19 21:17:31 EST 2010


Hi,

On Fri, Mar 19, 2010 at 04:18:39PM +0800, kai_yang2008 wrote:
[..]
> +#ifdef NEWOPTION
> +       case sNewOption:
> +               intptr = &options->newoption;
> +               goto parse_int;
> +#endif /* NEWOPTION */
[..]
> But it seems that the "newoption" can not be enable,when i set
> the "newoption" to "yes" in sshd_config file. 

You have told the code that you want an *integer*.  "yes" is not an integer.

To parse yes/no, use "goto parse_flag".

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert at greenie.muc.de
fax: +49-89-35655025                        gert at net.informatik.tu-muenchen.de


More information about the openssh-unix-dev mailing list