<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -28,14 +28,13 @@ module ImportWithLoadDataInFile
       file = Tempfile.new('ImportWithLoadDataInfile', tmpdir)
       tmpdir_file = File.new(tmpdir)
       # fix permissions
-      tmpdir_file.chmod(0755)
+      tmpdir_file.chmod(0755) rescue nil # do not barf if chmod fails
       file.chmod(0644)
-      # puts file.path
       vals.each do |column_values|
         file.write '&quot;' + line_for(column_values) + &quot;\&quot;\n&quot;
       end
       file.flush
-      file
+      return file
     end 
     
     # converts an array of column values into a csv string</diff>
      <filename>lib/import_with_load_data_in_file.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b7b3b088160779e72f180f9f2592f5dc17c113fc</id>
    </parent>
  </parents>
  <author>
    <name>Paolo Dona</name>
    <email>paolo.dona@gmail.com</email>
  </author>
  <url>http://github.com/paolodona/import_with_load_data_in_file/commit/e02d33f03c990bdc15de66905330f7c8a71585a3</url>
  <id>e02d33f03c990bdc15de66905330f7c8a71585a3</id>
  <committed-date>2008-10-16T01:22:38-07:00</committed-date>
  <authored-date>2008-10-16T01:22:38-07:00</authored-date>
  <message>do not raise an exception if tmpdir is not chmod-able</message>
  <tree>c5e55e5dd3959337f3f23167c8ad50f387488fd6</tree>
  <committer>
    <name>Paolo Dona</name>
    <email>paolo.dona@gmail.com</email>
  </committer>
</commit>
