Subject: Re: bug#63653: 29.0.91; [PATCH] More fix for loading SQLite extensions

From: lin Sun <[email-masked]>
Date: Tue, 23 May 2023 13:40:39 +0000

Hi Eli,

It works for me with the latest change on sqlite.c. Thank you !
And now I want add one line to support loading extensions with *.dylib,
Please help review the patch . Thanks
From a8ea552ea2dc34d4a22dded208b8bfd81e206e1f Mon Sep 17 00:00:00 2001
From: Lin Sun <[email-masked]>
Date: Tue, 23 May 2023 13:25:39 +0000
Subject: [PATCH] * src/sqlite.c (sqlite-load-extension): Also load from the
 dylib.

---
 src/sqlite.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/sqlite.c b/src/sqlite.c
index 852e3746ef..c863659222 100644
--- a/src/sqlite.c
+++ b/src/sqlite.c
@@ -733,6 +733,7 @@ DEFUN ("sqlite-load-extension", Fsqlite_load_extension,
       if (strlen (*allow) < strlen (name)
 	  && !strncmp (*allow, name, strlen (*allow))
 	  && (!strcmp (name + strlen (*allow), ".so")
+	      || !strcmp (name + strlen (*allow), ".dylib")
 	      || !strcasecmp (name + strlen (*allow), ".dll")))
 	{
 	  do_allow = true;
-- 
2.20.5