commit d51a91aeba01af72f324dffaa59123babee3ee18
Author: Oswald Buddenhagen <[email protected]>
Date: Thu Nov 9 18:01:27 2006 +0000
backport: make compat wrapper default to current user for imap login
src/compat/main.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/compat/main.c b/src/compat/main.c
index 69d3a51..6183a91 100644
--- a/src/compat/main.c
+++ b/src/compat/main.c
@@ -22,6 +22,7 @@
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/param.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
@@ -167,6 +168,11 @@ main( int argc, char **argv )
/* defaults */
/* XXX the precedence is borked:
it's defaults < cmdline < file instead of defaults < file < cmdline
*/
+#ifdef BSD
+ global.user = getenv( "USER" );
+#else
+ global.user = getenv( "LOGNAME" );
+#endif
global.port = 143;
global.box = "INBOX";
global.use_namespace = 1;
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel