3551: Remove superfluous chmod(). Umask is 022 here.
authorTom Clegg <tom@curoverse.com>
Thu, 14 Aug 2014 13:49:34 +0000 (09:49 -0400)
committerTom Clegg <tom@curoverse.com>
Thu, 14 Aug 2014 13:49:34 +0000 (09:49 -0400)
docker/build_tools/config.rb

index 24d6ccb09864b1f42e84dd14925179ac4aa2c938..d8bf256124eeeb387f6af39128b47b4ab35f9aac 100755 (executable)
@@ -49,8 +49,6 @@ Dir.glob(globdir + '/*.in') do |template_file|
   output_path = File.join(generated_dir, File.basename(template_file, '.in'))
   output_mode = (File.stat(template_file).mode & 0100) ? 0755 : 0644
   File.open(output_path, "w", output_mode) do |output|
-    # Set the mode again after opening, to thwart any prevailing umask:
-    output.chmod output_mode
     File.open(template_file) do |input|
       input.each_line do |line|