1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Fix bug #8729 - getpass regressions on Solaris/Illumos - 3.6 and master.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Jan 31 23:28:09 CET 2012 on sn-devel-104
This commit is contained in:
Ira Cooper 2012-01-31 12:15:36 -08:00 committed by Jeremy Allison
parent 6b8a4c96e8
commit a1901b55cf
2 changed files with 13 additions and 0 deletions

View File

@ -802,4 +802,15 @@ int fdatasync(int );
/* prototype is in "system/network.h" */
#endif
#if !defined(getpass)
#ifdef REPLACE_GETPASS
#if defined(REPLACE_GETPASS_BY_GETPASSPHRASE)
#define getpass(prompt) getpassphrase(prompt)
#else
#define getpass(prompt) rep_getpass(prompt)
char *rep_getpass(const char *prompt);
#endif
#endif
#endif
#endif /* _LIBREPLACE_REPLACE_H */

View File

@ -67,6 +67,7 @@
#include <compat.h>
#endif
#if !defined(getpass)
#ifdef REPLACE_GETPASS
#if defined(REPLACE_GETPASS_BY_GETPASSPHRASE)
#define getpass(prompt) getpassphrase(prompt)
@ -75,6 +76,7 @@
char *rep_getpass(const char *prompt);
#endif
#endif
#endif
#ifndef NGROUPS_MAX
#define NGROUPS_MAX 32 /* Guess... */