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:
parent
6b8a4c96e8
commit
a1901b55cf
@ -802,4 +802,15 @@ int fdatasync(int );
|
|||||||
/* prototype is in "system/network.h" */
|
/* prototype is in "system/network.h" */
|
||||||
#endif
|
#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 */
|
#endif /* _LIBREPLACE_REPLACE_H */
|
||||||
|
@ -67,6 +67,7 @@
|
|||||||
#include <compat.h>
|
#include <compat.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(getpass)
|
||||||
#ifdef REPLACE_GETPASS
|
#ifdef REPLACE_GETPASS
|
||||||
#if defined(REPLACE_GETPASS_BY_GETPASSPHRASE)
|
#if defined(REPLACE_GETPASS_BY_GETPASSPHRASE)
|
||||||
#define getpass(prompt) getpassphrase(prompt)
|
#define getpass(prompt) getpassphrase(prompt)
|
||||||
@ -75,6 +76,7 @@
|
|||||||
char *rep_getpass(const char *prompt);
|
char *rep_getpass(const char *prompt);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef NGROUPS_MAX
|
#ifndef NGROUPS_MAX
|
||||||
#define NGROUPS_MAX 32 /* Guess... */
|
#define NGROUPS_MAX 32 /* Guess... */
|
||||||
|
Loading…
Reference in New Issue
Block a user