- 31 Aug, 2001 13 commits
-
-
-
-
to register several functions which will be tried in turn in order to obtain struct passwd*. Changed virtual domain code in pop3d and imap4d to use this approach.
Sergey Poznyakoff authored -
-
-
-
-
-
-
mu_getpwnam calls each function in succession until it finds one which returns non-NULL value.
Sergey Poznyakoff authored -
pathname in a buffer. For a daemon, it is better to stay in "/" the root. Moving in subdirecteris, will not permit the volume to be unmounted. But we do not follow the same rule for imap4d, it should be fix. * pop3d/signal.c: Shutup unused parameter warrning from gcc. * pop3d/user.c: Define macro VIRTUAL_PWDDIR. use sprintf() to build filename instead of chdir(). (PAM_gnupop3d_conv): Shutup unused parameter warrning from gcc. Make sure variable mailbox_name is initialized. * include/mailutils/mutil.h: Typo "struct password" instead of "struct passwd". Use const appropriately in the declaration of mu_register_getpwnam() and mu_getpwnam(). * mailbox/mutil.c: Use const appropriately in the definition of mu_register_getpwnam() and mu_getpwnam(). Typo "struct password" instead of "struct passwd".
Alain Magloire authored
-
- 30 Aug, 2001 14 commits
-
-
mu_getpwnam function. The function first calls system getpwnam, if it fails, it calls application-defined getpwnam function. mu_register_getpwnam can be used to register such a function.
Sergey Poznyakoff authored -
-
-
-
-
-
-
When checking for PAM: Append to AUTHLIBS instead of just assigning to it.
Sergey Poznyakoff authored -
-
Append linker flags to AUTHLIBS, since modifying LIBS effectively breaks compilation.
Sergey Poznyakoff authored -
Return values were allocated dynamically but never freed, this caused memory leaks if authentication functions were called more than once. Made them static, so that they get reallocated at each new invocation of getM functions, thus reclaming lost storage. Made <config.h> the first file to be included and guard it with #ifdef HAVE_CONFIG_H Reindented text to conform to GNU coding style.
Sergey Poznyakoff authored -
-
-
- 29 Aug, 2001 5 commits
-
-
-
-
-
-
is rename mu_list_t, as a suggestion from Sam R. * mailbox2/list.c: All the function names are prefix with "mu_".
Alain Magloire authored
-
- 28 Aug, 2001 1 commit
- 27 Aug, 2001 3 commits
-
-
- 25 Aug, 2001 4 commits
-
-
-
* acconfig.h: Added support for new MySql addition to mailutils * configure.in: * MySql/Makefile.am: * MySql/MySql.c: Mini lib to link to when mysql support * MySql/MySql.h: enabled (with --enable-mysql) * doc/Readme.mysql: Readme file for setup. * imap4d/login.c: * mailbox/mbx_default.c: The Patch pretty much works the same * mailbox/mutil.c: all around. if getpwnam() returns null * mailbox2/mutil.c: then your db is checked for the user, * pop3d/apop.c: and the struct is filled if found, * pop3d/user.c: returns null if not. If shadow support is used, then the same is done with getspnam(). * examples/mail.MysqlMailer.c: Simple sendmail backend support.
Alain Magloire authored -
if the call fails no memory should be allocated and the return status should be return i.e. status != 0. * sieve/Makefile.am: To EXTRA_DIST add md5-rsa.{c,h}.
Alain Magloire authored
-