Use of system getpwuid() in many places of the code
actually broke mu_getpwnam() pardigm. To fix it, a wrapper function, mu_getpwuid(), is introduced. It allows to use 'overloaded' getpwuid calls. In the simplest case, it boils down to calling getpuid(). Applications, registering getpwname function by using mu_register_getpwname() are expected to register its getpwuid counterpart by using mu_register_getpwname(). "Virtual domains" (mutil.c:407) seem to be an exception: there is no easy way to create appropriate getpwuid() function. This does not break the virtual domain functionality, however.
Showing
1 changed file
with
50 additions
and
0 deletions
-
Please register or sign in to post a comment