From 1989371d10bccc2a1e6e9b31bd17992899870372 Mon Sep 17 00:00:00 2001 From: normal Date: Fri, 22 Dec 2017 01:07:55 +0000 Subject: [PATCH] webrick: WEBrick::Log requires path arg when given string Allowing a user to specify "| command" via Kernel#open is nonsensical since we never read from the resultant IO. * lib/webrick/log.rb (initialize): replace Kernel#open with File.open [Misc #14216] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/webrick/log.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/webrick/log.rb b/lib/webrick/log.rb index 41e907cd3b..2c1fdfe602 100644 --- a/lib/webrick/log.rb +++ b/lib/webrick/log.rb @@ -51,7 +51,7 @@ module WEBrick @level = level || INFO case log_file when String - @log = open(log_file, "a+") + @log = File.open(log_file, "a+") @log.sync = true @opened = true when NilClass