diff --git a/htdocs/lib/xcal.lib.php b/htdocs/lib/xcal.lib.php index 9c31a7e0648..27e888a8122 100644 --- a/htdocs/lib/xcal.lib.php +++ b/htdocs/lib/xcal.lib.php @@ -303,8 +303,6 @@ function build_rssfile($format='rss',$title,$desc,$events_array,$outputfile,$fil fwrite ($fichier, "\n"); fwrite ($fichier, "\n"); fwrite ($fichier, "\n"); - - //chmod($fichierout, 0664); } } @@ -313,6 +311,11 @@ function build_rssfile($format='rss',$title,$desc,$events_array,$outputfile,$fil fwrite($fichier, ''); fclose($fichier); + + // 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); } }