[asterisk-dev] default create directory permission 0755 instead of 0777

Tzafrir Cohen tzafrir.cohen at xorcom.com
Tue Aug 7 04:03:07 CDT 2007


On Tue, Aug 07, 2007 at 09:39:51AM +0100, Eric Dantie wrote:
> By default directory creation shouldn't be in mode 0755 instead of 0777?
> 
> For example in app_monitor.c (trunk version), line 375 ast_mkdir(tmp, 0777);
> should be, I think,  ast_mkdir(tmp, 0755);
> 
> Each time ast_mkdir is called with 0777 mode.

0777 is before the umask had its say. See mkdir(2) and umask(2) .

-- 
               Tzafrir Cohen       
icq#16849755                    jabber:tzafrir at jabber.org
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-dev mailing list