On Sun, 2009-06-28 at 12:44 +0200, Axel Luttgens wrote:
> I thus tried this variant:
>
> } else {
> /* try to use some existing user. at least osx launchd
> doesn't like non-existing users. */
> struct passwd *pw;
>
> /* written that way, this could be extended to some other
> candidate system users (e.g. daemon?) */
> if ( ((pw = getpwnam("nobody")) != NULL)
> && (pw->pw_uid != (uid_t)-1) && (pw->pw_gid !=
> (gid_t)-1) )
> {
> args[0] = t_strdup_printf("uid=%s",
> dec2str(pw->pw_uid));
> args[1] = t_strdup_printf("gid=%s",
> dec2str(pw->pw_gid));
> }
> }I implemented pretty much the same: http://hg.dovecot.org/dovecot-1.2/rev/62b9661b4c7a
signature.asc
Description: This is a digitally signed message part
