rem: outputStream.init(LocalFileInstance, MODE_WRONLY | MODE_CREATE | MODE_TRUNCATE, PERM_IWOTH | PERM_IWGRP); 
add: outputStream.init(LocalFileInstance, MODE_WRONLY | MODE_CREATE | MODE_TRUNCATE, 0664); 
context: function saveDataToFile(aFilePath, aDataStream){   const LOCALFILE_CTRID = "@mozilla.org/file/local;1";   const FILEOUT_CTRID = "@mozilla.org/network/file-output-stream;1";   const nsILocalFile = Components.interfaces.nsILocalFile;   const nsIFileOutputStream = Components.interfaces.nsIFileOutputStream;   var localFileInstance;   var outputStream;      LocalFileInstance = Components.classes[LOCALFILE_CTRID].createInstance(nsILocalFile);   LocalFileInstance.initWithPath(aFilePath);   outputStream = Components.classes[FILEOUT_CTRID].createInstance(nsIFileOutputStream);   try   {      outputStream.init(LocalFileInstance, MODE_WRONLY | MODE_CREATE | MODE_TRUNCATE, PERM_IWOTH | PERM_IWGRP);      outputStream.write(aDataStream, aDataStream.length);      // outputStream.flush();      outputStream.close();   }   catch(ex)   {      alert("Unable to write to file: " + aFilePath );   }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/53b5990d2b3a96f353e422ce3be959d699cefd5e/importExport.js/buggy/calendar/resources/content/importExport.js