6 messages in net.sourceforge.lists.courier-usersRe: [courier-users] autocreating dire...
FromSent OnAttachments
Arvinn LøkkebakkenMar 15, 2005 4:09 am 
Sam VarshavchikMar 15, 2005 4:17 am 
Ricky ChanMar 15, 2005 4:34 am 
Ricky ChanMar 15, 2005 4:39 am 
Arvinn LøkkebakkenMar 15, 2005 4:57 am 
Arvinn LøkkebakkenMar 15, 2005 4:58 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] autocreating directoriesActions...
From:Arvinn Løkkebakken (arv@sandakerveien.net)
Date:Mar 15, 2005 4:58:08 am
List:net.sourceforge.lists.courier-users

Ricky Chan wrote:

Here is mine. To enable add ENABLE_CREATEDIR=1 in your authlib start up config, pretty self explainatory. (okay I know if not enabled it will try chdir twice and can be tidied up to avoid this).

if (chdir(ainfo->homedir)) { /* try at least once the create dir if createdir defined */ if(getenv("ENABLE_CREATEDIR")) { auth_mkdir(ainfo->homedir); }

if(chdir(ainfo->homedir)) { fprintf(stderr, "WARN: %s: chdir(%s) failed!!\n", ainfo->address, ainfo->homedir); perror("WARN: error"); return (1); } }

Thanks a lot.