--- getpass.c Fri Nov 16 00:30:58 2007 +++ samba-3.0.27/source/lib/replace/getpass.c Fri Nov 16 00:40:26 2007 @@ -20,6 +20,19 @@ #include "replace.h" +#if defined(REPLACE_GETPASS_BY_GETPASSPHRASE) + +#if defined(HAVE_STDIO_H) +#include +#endif + +char *getsmbpass(const char *prompt) +{ + return getpassphrase(prompt); +} + +#else /* !REPLACE_GETPASS_BY_GETPASSPHRASE */ + #if defined(HAVE_TERMIOS_H) /* POSIX terminal handling. */ #include @@ -210,3 +223,5 @@ void getsmbpasswd_dummy(void); void getsmbpasswd_dummy(void) {;} #endif + +#endif /* REPLACE_GETPASS_BY_GETPASSPHRASE */