We change mod to allow file to be overwritten if dump is launched from command line or a web session.
This commit is contained in:
parent
149aee5615
commit
7535c7cdb9
@ -18,8 +18,6 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
* or see http://www.gnu.org/
|
||||
*
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
|
||||
@ -30,7 +28,7 @@
|
||||
\author Benoit Mortier
|
||||
\author Regis Houssin
|
||||
\author Laurent Destailleur
|
||||
\version $Revision$
|
||||
\version $Id$
|
||||
*/
|
||||
class Ldap
|
||||
{
|
||||
@ -599,6 +597,10 @@ class Ldap
|
||||
{
|
||||
fputs($fp, $content);
|
||||
fclose($fp);
|
||||
// We change mod to allow file to be overwritten if dump is launched
|
||||
// from command line or a web session.
|
||||
// 0662 = rw-rw--w-
|
||||
@chmod($file, 0662);
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
|
||||
@ -314,8 +314,8 @@ function build_rssfile($format='rss',$title,$desc,$events_array,$outputfile,$fil
|
||||
|
||||
// We change mod to allow file to be overwritten if dump is launched
|
||||
// from command line or a web session.
|
||||
// 0662 = rw-rw--w-
|
||||
@chmod($fichier, 0662);
|
||||
// 0662 = rw-rw-rw-
|
||||
@chmod($fichier, 0666);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user