[asterisk-bugs] [Asterisk 0016762]: [patch] ast_filecopy: keep modes for the created file
Asterisk Bug Tracker
noreply at bugs.digium.com
Wed Mar 10 01:05:05 CST 2010
The following issue has been CLOSED
======================================================================
https://issues.asterisk.org/view.php?id=16762
======================================================================
Reported By: romain_proformatique
Assigned To: tilghman
======================================================================
Project: Asterisk
Issue ID: 16762
Category: Core/FileFormatInterface
Reproducibility: always
Severity: tweak
Priority: normal
Status: closed
Asterisk Version: SVN
JIRA: SWP-863
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): 1.4
SVN Revision (number only!): 244242
Request Review:
Resolution: won't fix
Fixed in Version:
======================================================================
Date Submitted: 2010-02-03 10:09 CST
Last Modified: 2010-03-10 01:05 CST
======================================================================
Summary: [patch] ast_filecopy: keep modes for the created
file
Description:
In src/main/file.c, the static function “copy” creates a new file with
the hardcoded 0600 mode.
I've attached a patch to create the new file with the copied file's modes.
======================================================================
----------------------------------------------------------------------
(0119204) tilghman (administrator) - 2010-03-10 01:05
https://issues.asterisk.org/view.php?id=16762#c119204
----------------------------------------------------------------------
Additionally, what we've decided to do going forward is to rely entirely on
the umask to set the correct file modes. So the passed mode for files is
0666, and the umask will modify those permissions as the administrator
intends. This is the way that it is in 1.6. We will not change 1.4
because of legacy concerns.
Issue History
Date Modified Username Field Change
======================================================================
2010-03-10 01:05 tilghman Asterisk Version 1.4.29 => SVN
2010-03-10 01:05 tilghman Note Added: 0119204
2010-03-10 01:05 tilghman Assigned To => tilghman
2010-03-10 01:05 tilghman Status ready for testing =>
closed
2010-03-10 01:05 tilghman Resolution open => won't fix
2010-03-10 01:05 tilghman Description Updated
======================================================================
More information about the asterisk-bugs
mailing list