File 0177-Don-t-use-iolist_to_binary-with-write_file.patch of Package erlang
From bb21a7a54cfed55c550f5fd24002f184cf9e2bc1 Mon Sep 17 00:00:00 2001
From: Michal Palka <michal.palka@hiq.se>
Date: Thu, 15 Apr 2021 16:48:30 +0200
Subject: [PATCH 3/3] Don't use iolist_to_binary() with write_file()
---
lib/ssl/test/make_certs.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ssl/test/make_certs.erl b/lib/ssl/test/make_certs.erl
index ea655df782..0f18ee9e0a 100644
--- a/lib/ssl/test/make_certs.erl
+++ b/lib/ssl/test/make_certs.erl
@@ -201,7 +201,7 @@ remove_line_with_pattern(File, Pattern) ->
end,
RevLines = lists:foldl(MaybeRemove, [], AllLines),
Lines = lists:join("\n", lists:reverse(RevLines)),
- ok = file:write_file(File, iolist_to_binary(Lines)).
+ ok = file:write_file(File, Lines).
gencrl(Root, CA, C) ->
%% By default, the CRL is valid for a week from now.
--
2.26.2