diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-07-17 12:13:22 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-07-17 12:13:22 +0100 |
commit | 2f1ba5fb364de990170d05e7dd81e8c0e2ef6e5f (patch) | |
tree | 81e8341e4d5e6cbc5611a1312891b4d76baf9458 /lib | |
parent | 27bf048f6681deb4f09090907c6880ff2c5eadb1 (diff) |
Always provide a string for stdin (passing nil exposed an apparent bug in `uudecode` in Ubuntu 11.10)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/alaveteli_external_command.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/alaveteli_external_command.rb b/lib/alaveteli_external_command.rb index b1d4f17d1..7d32be904 100644 --- a/lib/alaveteli_external_command.rb +++ b/lib/alaveteli_external_command.rb @@ -30,7 +30,7 @@ module AlaveteliExternalCommand if opts.has_key? :append_to xc.out = opts[:append_to] end - xc.run(opts[:stdin_string], opts[:env] || {}) + xc.run(opts[:stdin_string] || "", opts[:env] || {}) if xc.status != 0 # Error $stderr.puts("Error from #{program_name} #{args.join(' ')}:") |