[Home]

Summary:ASTERISK-16621: [patch] Asterisk not honouring umask when creating vm directories
Reporter:Paul D Hales (pdhales)Labels:
Date Opened:2010-08-26 02:14:00Date Closed:2011-06-07 14:04:56
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 17916_v1.diff
Description:umask set as:

UMASK=007

VM directories created as:

drwxr-xr-x 8 asterisk asterisk 4096 2010-08-26 15:44 501



****** ADDITIONAL INFORMATION ******

Issue confirmed on both asterisk 1.4.35 (ubuntu 10) and 1.4.31 (ubuntu 9)


Comments:By: Elazar Broad (ebroad) 2010-08-30 12:49:15

Please test the attached patch, thanks!

By: Jeff Peeler (jpeeler) 2011-02-07 13:52:48.000-0600

This does not appear to be a valid way of setting the umask. I'm observing that running "umask 002" for example, is working as expected.

drwxrwxr-x 2 root root 4.0K 2011-02-07 13:51 tmp

The man page states that mkdir takes into account the umask of the process (in create_dirpath).