about summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2023-06-26 17:13:04 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2023-06-26 17:13:04 +0900
commita84fdd7c8f77935ecce99ff2b0bdba738821ed79 (patch)
tree06f7bc39f53284ffc53dcbf5a85f8315e79e109f /Src/Modules
parent1b9bc3441ca0e6d155243084d6e7b98925dc02cb (diff)
downloadzsh-a84fdd7c8f77935ecce99ff2b0bdba738821ed79.tar.gz
zsh-a84fdd7c8f77935ecce99ff2b0bdba738821ed79.tar.xz
zsh-a84fdd7c8f77935ecce99ff2b0bdba738821ed79.zip
51889: fix module loading problem with full RELRO
If full RELRO (relocation read-only, one of the security enhancement
methods for ELF-based systems) is used when building zsh (as in binary
packages of most Linuxes), loading a module (e.g. zsh/zftp) fails unless
all the modules it depends on are already loaded. With this patch the
necessary modules are automatically loaded.
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/zftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c
index 49b3ffa89..47a5e9de9 100644
--- a/Src/Modules/zftp.c
+++ b/Src/Modules/zftp.c
@@ -3172,7 +3172,7 @@ static struct features module_features = {
 int
 setup_(UNUSED(Module m))
 {
-    return (require_module("zsh/net/tcp", NULL, 0) == 1);
+    return 0;
 }
 
 /**/