Fossil SCM
Fix for passwords > 8 chars long on Solaris. getpass() silently truncates to 8 chars, use getpassphrase() instead.
Commit
3e61ada775441252e85d0cd2d5f8f84e7a520e3f
Parent
9ef38b6b6d8ac5d…
1 file changed
+7
+7
| --- src/config.h | ||
| +++ src/config.h | ||
| @@ -82,10 +82,17 @@ | ||
| 82 | 82 | |
| 83 | 83 | #ifndef _RC_COMPILE_ |
| 84 | 84 | |
| 85 | 85 | #include "sqlite3.h" |
| 86 | 86 | |
| 87 | +/* | |
| 88 | +** On Solaris, getpass() will only return up to 8 characters. getpassphrase() returns up to 257. | |
| 89 | +*/ | |
| 90 | +#if defined(__sun__) || defined(sun) | |
| 91 | + #define getpass getpassphrase | |
| 92 | +#endif | |
| 93 | + | |
| 87 | 94 | /* |
| 88 | 95 | ** Typedef for a 64-bit integer |
| 89 | 96 | */ |
| 90 | 97 | typedef sqlite3_int64 i64; |
| 91 | 98 | typedef sqlite3_uint64 u64; |
| 92 | 99 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -82,10 +82,17 @@ | |
| 82 | |
| 83 | #ifndef _RC_COMPILE_ |
| 84 | |
| 85 | #include "sqlite3.h" |
| 86 | |
| 87 | /* |
| 88 | ** Typedef for a 64-bit integer |
| 89 | */ |
| 90 | typedef sqlite3_int64 i64; |
| 91 | typedef sqlite3_uint64 u64; |
| 92 |
| --- src/config.h | |
| +++ src/config.h | |
| @@ -82,10 +82,17 @@ | |
| 82 | |
| 83 | #ifndef _RC_COMPILE_ |
| 84 | |
| 85 | #include "sqlite3.h" |
| 86 | |
| 87 | /* |
| 88 | ** On Solaris, getpass() will only return up to 8 characters. getpassphrase() returns up to 257. |
| 89 | */ |
| 90 | #if defined(__sun__) || defined(sun) |
| 91 | #define getpass getpassphrase |
| 92 | #endif |
| 93 | |
| 94 | /* |
| 95 | ** Typedef for a 64-bit integer |
| 96 | */ |
| 97 | typedef sqlite3_int64 i64; |
| 98 | typedef sqlite3_uint64 u64; |
| 99 |