Generalized mu_getpwnam interface. mu_register_getpwnam allows
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.
Showing
1 changed file
with
33 additions
and
0 deletions
1 | 2001-08-31 Sergey Poznyakoff | ||
2 | |||
3 | Generalized mu_getpwnam interface. mu_register_getpwnam allows | ||
4 | to register several functions which will be tried in turn in | ||
5 | order to obtain struct passwd*. Changed virtual domain code | ||
6 | in pop3d and imap4d to use this approach. | ||
7 | |||
8 | * mailbox/mutil.c: _app_getpwnam is a list of getpwnam functions. | ||
9 | mu_getpwnam calls each function in succession until it finds one | ||
10 | which returns non-NULL value. | ||
11 | * include/mailutils/mutil.h: Fixed mu_.*getpwnam declarations. Added | ||
12 | declaration for mu_virtual_domain and getpwnam_virtual() | ||
13 | * mailbox/Makefile.am: Add -DSITE_VIRTUAL_PWDDIR to CFLAGS. | ||
14 | |||
15 | * configure.in: New option --with-virtual-pwddir allows to configure | ||
16 | the path to domain passwd files. Defaults to <sysconfdir>/domain. | ||
17 | |||
18 | * imap4d/copy.c: Use mu_virtual_domain instead of is_virtual. | ||
19 | * imap4d/select.c: Likewise. | ||
20 | * imap4d/status.c: Likewise. | ||
21 | |||
22 | * imap4d/imap4d.c: Register getpwnam_virtual for handling virtual | ||
23 | domains. | ||
24 | * pop3d/pop3d.c: Likewise. | ||
25 | |||
26 | * imap4d/login.c: Removed imap4d_virtual. Its functionality passed | ||
27 | to getpwnam_virtual. | ||
28 | * pop3d/pop3d.h: Include mutil.h | ||
29 | * pop3d/user.c: Removed pop3d_virtual. Its functions are performed | ||
30 | by getpwnam_virtual. Renamed is_virtual to mu_virtual_domain. | ||
31 | |||
32 | * mail/alias.c: Use linear hash ordering. | ||
33 | |||
1 | 2001-08-30 Alain Magloire | 34 | 2001-08-30 Alain Magloire |
2 | 35 | ||
3 | In the virtual code, change the chdir() and build the full | 36 | In the virtual code, change the chdir() and build the full | ... | ... |
-
Please register or sign in to post a comment