Skip to content

Commit 651beb9

Browse files
committed
Land rapid7#4192, enable specifying mode for Rex output file
2 parents 714ce2f + f658efe commit 651beb9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rex/ui/text/output/file.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class Output::File < Rex::Ui::Text::Output
1414

1515
attr_accessor :fd
1616

17-
def initialize(path)
18-
self.fd = ::File.open(path, "wb")
17+
def initialize(path, mode='wb')
18+
self.fd = ::File.open(path, mode)
1919
end
2020

2121
def supports_color?

0 commit comments

Comments
 (0)