Re: [PATCH] Avoid crippled getpass function on Solaris
Ben Walton <bwalton@artsci.utoronto.ca> writes:
Show 18 quoted lines
> diff --git a/compat/terminal.h b/compat/terminal.h
> index 97db7cd..8d7b3f9 100644
> --- a/compat/terminal.h
> +++ b/compat/terminal.h
> @@ -3,4 +3,13 @@
>
> char *git_terminal_prompt(const char *prompt, int echo);
>
> +/* getpass() returns at most 8 characters on solaris so use
> + getpassphrase() which returns up to 256. */
> +# if defined (__SVR4) && defined (__sun) /* solaris */
> +#define GETPASS getpassphrase
> +#else
> +#define GETPASS getpass
> +#endif
> +
> +
> #endif /* COMPAT_TERMINAL_H */
Wouldn't
#if solaris
#define getpass getpassphrase
#endifwithout anything else be more than sufficient?