summaryrefslogtreecommitdiff
path: root/source3/lib/replace/system
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-12-11 13:16:35 -0800
committerJeremy Allison <jra@samba.org>2007-12-11 13:16:35 -0800
commit95c2f313cef37680fee47b2fc4d1bf15929ad6e7 (patch)
treed2328cc351843399dfcd01b8a0425062c37377fa /source3/lib/replace/system
parentaf3cc957f003444ef1f0ef13afbed2ed4e8ea264 (diff)
downloadsamba-95c2f313cef37680fee47b2fc4d1bf15929ad6e7.tar.gz
samba-95c2f313cef37680fee47b2fc4d1bf15929ad6e7.tar.bz2
samba-95c2f313cef37680fee47b2fc4d1bf15929ad6e7.zip
Add patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech Republic <Jiri.Sasek@Sun.COM>
- slightly modified - Jiri please check ! to allow Solaris to get passwords > 8 chars. Jeremy. (This used to be commit 657bf8c3479d6192f269e3daef1517e77a9fa9cb)
Diffstat (limited to 'source3/lib/replace/system')
-rw-r--r--source3/lib/replace/system/passwd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/replace/system/passwd.h b/source3/lib/replace/system/passwd.h
index 36fca7b4f8..cad3197ccb 100644
--- a/source3/lib/replace/system/passwd.h
+++ b/source3/lib/replace/system/passwd.h
@@ -68,9 +68,13 @@
#endif
#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
#ifndef NGROUPS_MAX
#define NGROUPS_MAX 32 /* Guess... */