[dokuwiki] Re: dmode permissions and 2006-09-28 rc1

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 10 Oct 2006 21:05:14 +0200

On Tue, 10 Oct 2006 11:47:33 -0700
chris <jugg@xxxxxxxxxxx> wrote:

> Possible pseudo-solution:
> 
> $old_umask = umask();
> umask(0);
> mkdir('newdir', $dmode);
> umask($old_umask);

Setting the umask from within PHP is a mess, we had that some versions
ago and people had all kinds of problem with it becuase the umask seems
not to be "thread safe" (or what ever the correct term is). If this is
not something you care about because you know what you do you should be
able to put an umask(0); call in your config file.

Andi

-- 
http://www.splitbrain.org

Other related posts: