File 0174-Fix-user-defined-function-support-when-using-the-res.patch of Package erlang
From b02a5f7133fb6ff09ed989799a3aa97a4f4c0b5f Mon Sep 17 00:00:00 2001
From: Andrew Bennett <potatosaladx@meta.com>
Date: Tue, 21 Oct 2025 16:19:31 -0500
Subject: [PATCH] Fix user-defined function support when using the restricted
shell.
---
lib/stdlib/src/shell.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/stdlib/src/shell.erl b/lib/stdlib/src/shell.erl
index 0ac830f12b..85e9fc06fa 100644
--- a/lib/stdlib/src/shell.erl
+++ b/lib/stdlib/src/shell.erl
@@ -1159,7 +1159,7 @@ not_restricted(exit, []) ->
true;
not_restricted(fl, []) ->
true;
-not_restricted(fd, [_,_]) ->
+not_restricted(fd, [_,_,_]) ->
true;
not_restricted(ft, [_]) ->
true;
--
2.51.0