Re: [Debian bug 781107] ssh-keygen -F return code has changed and is not documented

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Wed, 25 Mar 2015, Matthew Vernon wrote:

> I had a look; ssh-keygen either exits 1 or 255 (via fatal). It's not
> clear to me from reading the code what the rationale is for picking 1 or
> 255; what is the intended difference in meaning between these two errors
> (or alternatively, how do you decide whether to call fatal or print and
> error and exit(1))?

There's no rationale, just history. ssh-keygen probably needs
tidying more than any other part of the codebase.

IMO we should fatal() for errors and exit() only for cases where we
want to return a meaningful signal via the return value.

-d
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev




[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux