[Dovecot] ACLs, imap and launchd

Timo Sirainen tss at iki.fi
Tue Jun 30 18:04:47 EEST 2009


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20090630/66d3a440/attachment.bin 


More information about the dovecot mailing list