Skip to content

Commit

Permalink
Merge pull request #691 from fluent/add-binmode
Browse files Browse the repository at this point in the history
Tempfile should be binary mode
  • Loading branch information
repeatedly committed Oct 28, 2015
2 parents 0330968 + f50fc7c commit bc3b302
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fluent/plugin/out_exec.rb
Expand Up @@ -81,6 +81,7 @@ def write(chunk)
prog = "#{@command} #{chunk.path}"
else
tmpfile = Tempfile.new("fluent-plugin-exec-")
tmpfile.binmode
chunk.write_to(tmpfile)
tmpfile.close
prog = "#{@command} #{tmpfile.path}"
Expand Down

0 comments on commit bc3b302

Please sign in to comment.