diff --git a/htdocs/lib/ldap.class.php b/htdocs/lib/ldap.class.php index e2423cac11a..7884864b8d0 100644 --- a/htdocs/lib/ldap.class.php +++ b/htdocs/lib/ldap.class.php @@ -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 diff --git a/htdocs/lib/xcal.lib.php b/htdocs/lib/xcal.lib.php index 27e888a8122..1acf1f06b22 100644 --- a/htdocs/lib/xcal.lib.php +++ b/htdocs/lib/xcal.lib.php @@ -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); } }