diff --git a/COPYING b/COPYING
index ec10c8e48..3bef7f09f 100644
--- a/COPYING
+++ b/COPYING
@@ -13,7 +13,7 @@ Redistribution and use in source and binary forms, with or without modification,
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
All changes added after 7.2.4 are distributed under the terms of the GNU General
-Public License 3.0 (GPL-3.0-only):
+Public License 3.0 (LGPL-3.0-only):
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
diff --git a/LICENSES/GPL-3.0-only.txt b/LICENSES/LGPL-3.0-only.txt
similarity index 81%
rename from LICENSES/GPL-3.0-only.txt
rename to LICENSES/LGPL-3.0-only.txt
index f6cdd22a6..513d1c01f 100644
--- a/LICENSES/GPL-3.0-only.txt
+++ b/LICENSES/LGPL-3.0-only.txt
@@ -1,7 +1,79 @@
+GNU LESSER GENERAL PUBLIC LICENSE
+Version 3, 29 June 2007
+
+Copyright (C) 2007 Free Software Foundation, Inc.
+
+Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
+
+This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.
+
+0. Additional Definitions.
+
+As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License.
+
+"The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.
+
+An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.
+
+A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version".
+
+The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.
+
+The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.
+
+1. Exception to Section 3 of the GNU GPL.
+You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.
+
+2. Conveying Modified Versions.
+If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:
+
+ a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.
+
+3. Object Code Incorporating Material from Library Header Files.
+The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license document.
+
+4. Combined Works.
+You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:
+
+ a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
+
+ c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.
+
+ e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)
+
+5. Combined Libraries.
+You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
+
+6. Revised Versions of the GNU Lesser General Public License.
+The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.
+
+If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
+
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
-Copyright © 2007 Free Software Foundation, Inc.
+Copyright © 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
@@ -215,7 +287,7 @@ To do so, attach the following notices to the program. It is safest to attach th
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
- You should have received a copy of the GNU General Public License along with this program. If not, see .
+ You should have received a copy of the GNU General Public License along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
@@ -227,6 +299,6 @@ If the program does terminal interaction, make it output a short notice like thi
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
-You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see .
+You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see .
-The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .
+The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .
diff --git a/README.md b/README.md
index a1b4dd942..58ddd93d0 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@ to a [non-free license][nonfree].
This fork is intended to be backwards-compatible with Redis 7.2.4 and then to
diverge from then onwards. It should work as a drop-in replacement for Redis
7.2.4, but compatibility with later versions of Redis is not guaranteed. The
-codebase has been relicensed from BSD-3-Clause to GPL-3.0-only and will not be
+codebase has been relicensed from BSD-3-Clause to LGPL-3.0-only and will not be
using a Contributor License Agreement, which prevents it a similar non-free
change from ever taking place in the future of Redict.
@@ -22,7 +22,7 @@ More details to come in a later announcement.
* [x] Rename binaries
* [x] Update test suite
-* [x] Relicense as GPL-3.0-only
+* [x] Relicense as LGPL-3.0-only
* [x] Update copyright headers
* [x] REUSE for license management
* [x] Rename source files
diff --git a/runtest b/runtest
index 7cefaed65..cabbabf15 100755
--- a/runtest
+++ b/runtest
@@ -2,7 +2,7 @@
#
# SPDX-FileCopyrightText: 2024 Redict Contributors
#
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
TCL_VERSIONS="8.5 8.6 8.7"
TCLSH=""
diff --git a/runtest-cluster b/runtest-cluster
index d7f471e4d..7a849cd3b 100755
--- a/runtest-cluster
+++ b/runtest-cluster
@@ -2,7 +2,7 @@
#
# SPDX-FileCopyrightText: 2024 Redict Contributors
#
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
TCL_VERSIONS="8.5 8.6 8.7"
TCLSH=""
diff --git a/runtest-moduleapi b/runtest-moduleapi
index a286325c6..94cc789e5 100755
--- a/runtest-moduleapi
+++ b/runtest-moduleapi
@@ -2,7 +2,7 @@
#
# SPDX-FileCopyrightText: 2024 Redict Contributors
#
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
TCL_VERSIONS="8.5 8.6 8.7"
TCLSH=""
[ -z "$MAKE" ] && MAKE=make
diff --git a/runtest-sentinel b/runtest-sentinel
index 0cf0b23b0..b77c6fde0 100755
--- a/runtest-sentinel
+++ b/runtest-sentinel
@@ -2,7 +2,7 @@
#
# SPDX-FileCopyrightText: 2024 Redict Contributors
#
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
TCL_VERSIONS="8.5 8.6 8.7"
TCLSH=""
diff --git a/src/Makefile b/src/Makefile
index 47f8f385f..f15866621 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -3,7 +3,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
release_hdr := $(shell sh -c './mkreleasehdr.sh')
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
diff --git a/src/acl.c b/src/acl.c
index f34fc3177..768176e7e 100644
--- a/src/acl.c
+++ b/src/acl.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "sha256.h"
diff --git a/src/adlist.c b/src/adlist.c
index e02a15761..02f86f643 100644
--- a/src/adlist.c
+++ b/src/adlist.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
#include "adlist.h"
diff --git a/src/adlist.h b/src/adlist.h
index cf2edd3e2..429fb6bcc 100644
--- a/src/adlist.h
+++ b/src/adlist.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __ADLIST_H__
#define __ADLIST_H__
diff --git a/src/ae.c b/src/ae.c
index c2267c936..df4ae40f2 100644
--- a/src/ae.c
+++ b/src/ae.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "ae.h"
#include "anet.h"
diff --git a/src/ae.h b/src/ae.h
index 671966cbe..a2d5719a6 100644
--- a/src/ae.h
+++ b/src/ae.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __AE_H__
#define __AE_H__
diff --git a/src/ae_epoll.c b/src/ae_epoll.c
index c5bc51fe9..d6cb6ce13 100644
--- a/src/ae_epoll.c
+++ b/src/ae_epoll.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
diff --git a/src/ae_evport.c b/src/ae_evport.c
index b751d5154..f611e62d7 100644
--- a/src/ae_evport.c
+++ b/src/ae_evport.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
#include
diff --git a/src/ae_kqueue.c b/src/ae_kqueue.c
index e09582bc3..4cb161382 100644
--- a/src/ae_kqueue.c
+++ b/src/ae_kqueue.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
#include
diff --git a/src/ae_select.c b/src/ae_select.c
index edb2c962e..eee75d51f 100644
--- a/src/ae_select.c
+++ b/src/ae_select.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
#include
diff --git a/src/anet.c b/src/anet.c
index e41b50a86..f32d4770a 100644
--- a/src/anet.c
+++ b/src/anet.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "fmacros.h"
diff --git a/src/anet.h b/src/anet.h
index 44fb43802..521feb0c1 100644
--- a/src/anet.h
+++ b/src/anet.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef ANET_H
#define ANET_H
diff --git a/src/aof.c b/src/aof.c
index ebffd5717..7ec41cc09 100644
--- a/src/aof.c
+++ b/src/aof.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "bio.h"
diff --git a/src/asciilogo.h b/src/asciilogo.h
index a68c6e479..da578d81e 100644
--- a/src/asciilogo.h
+++ b/src/asciilogo.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
const char *ascii_logo =
" _._ \n"
diff --git a/src/atomicvar.h b/src/atomicvar.h
index ae0572a4b..806c94f60 100644
--- a/src/atomicvar.h
+++ b/src/atomicvar.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
#include "config.h"
diff --git a/src/bio.c b/src/bio.c
index b8d2e4c69..1e5990610 100644
--- a/src/bio.c
+++ b/src/bio.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "bio.h"
diff --git a/src/bio.h b/src/bio.h
index 4d7fbcb1e..a6111507a 100644
--- a/src/bio.h
+++ b/src/bio.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __BIO_H
#define __BIO_H
diff --git a/src/bitops.c b/src/bitops.c
index 4a69c6654..60e0e3b85 100644
--- a/src/bitops.c
+++ b/src/bitops.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
diff --git a/src/blocked.c b/src/blocked.c
index f2da9f188..a63e13241 100644
--- a/src/blocked.c
+++ b/src/blocked.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "slowlog.h"
diff --git a/src/call_reply.c b/src/call_reply.c
index 41e899f93..9ad136db0 100644
--- a/src/call_reply.c
+++ b/src/call_reply.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "call_reply.h"
diff --git a/src/call_reply.h b/src/call_reply.h
index 3d5650f6c..9de09ba25 100644
--- a/src/call_reply.h
+++ b/src/call_reply.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef SRC_CALL_REPLY_H_
#define SRC_CALL_REPLY_H_
diff --git a/src/childinfo.c b/src/childinfo.c
index 8a60baa6f..d50fd8fde 100644
--- a/src/childinfo.c
+++ b/src/childinfo.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include
diff --git a/src/cli_commands.c b/src/cli_commands.c
index 0a135ddc4..acf11fce2 100644
--- a/src/cli_commands.c
+++ b/src/cli_commands.c
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
#include "cli_commands.h"
diff --git a/src/cli_commands.h b/src/cli_commands.h
index 9749a3df4..0b6695edf 100644
--- a/src/cli_commands.h
+++ b/src/cli_commands.h
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/* This file is used by redict-cli in place of server.h when including commands.c
* It contains alternative structs which omit the parts of the commands table
diff --git a/src/cli_common.c b/src/cli_common.c
index b51f1fd43..9d65e0e3e 100644
--- a/src/cli_common.c
+++ b/src/cli_common.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "fmacros.h"
#include "cli_common.h"
diff --git a/src/cli_common.h b/src/cli_common.h
index 173f7ca24..8f97f4aec 100644
--- a/src/cli_common.h
+++ b/src/cli_common.h
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __CLICOMMON_H
#define __CLICOMMON_H
diff --git a/src/cluster.c b/src/cluster.c
index cb6f327a7..31948fc50 100644
--- a/src/cluster.c
+++ b/src/cluster.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/*
* cluster.c contains the common parts of a clustering
diff --git a/src/cluster.h b/src/cluster.h
index c91fe1273..4ec770b2a 100644
--- a/src/cluster.h
+++ b/src/cluster.h
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __CLUSTER_H
#define __CLUSTER_H
diff --git a/src/cluster_legacy.c b/src/cluster_legacy.c
index 67e1f80d6..4b53785a3 100644
--- a/src/cluster_legacy.c
+++ b/src/cluster_legacy.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/*
* cluster_legacy.c contains the implementation of the cluster API that is
diff --git a/src/cluster_legacy.h b/src/cluster_legacy.h
index 00daece60..cd4f68754 100644
--- a/src/cluster_legacy.h
+++ b/src/cluster_legacy.h
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef CLUSTER_LEGACY_H
#define CLUSTER_LEGACY_H
diff --git a/src/commands.c b/src/commands.c
index d787e9754..1e7f8e31c 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "commands.h"
#include "server.h"
diff --git a/src/commands.h b/src/commands.h
index 9dff164ff..cf654d1ae 100644
--- a/src/commands.h
+++ b/src/commands.h
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __REDICT_COMMANDS_H
#define __REDICT_COMMANDS_H
diff --git a/src/config.c b/src/config.c
index 99981d9d0..02ef72226 100644
--- a/src/config.c
+++ b/src/config.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "cluster.h"
diff --git a/src/config.h b/src/config.h
index 7eaadd563..568ebfb3b 100644
--- a/src/config.h
+++ b/src/config.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __CONFIG_H
#define __CONFIG_H
diff --git a/src/connection.c b/src/connection.c
index 101de7b22..b3e46c5ca 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "connection.h"
diff --git a/src/connection.h b/src/connection.h
index eb4dc2204..d95238172 100644
--- a/src/connection.h
+++ b/src/connection.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __REDICT_CONNECTION_H
#define __REDICT_CONNECTION_H
diff --git a/src/connhelpers.h b/src/connhelpers.h
index e1151604e..e025c66bb 100644
--- a/src/connhelpers.h
+++ b/src/connhelpers.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __REDICT_CONNHELPERS_H
#define __REDICT_CONNHELPERS_H
diff --git a/src/crc16.c b/src/crc16.c
index e40da4a54..f9d9205f0 100644
--- a/src/crc16.c
+++ b/src/crc16.c
@@ -6,7 +6,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/* CRC16 implementation according to CCITT standards.
*
diff --git a/src/crc16_slottable.h b/src/crc16_slottable.h
index 308ecc448..f5d3c09bf 100644
--- a/src/crc16_slottable.h
+++ b/src/crc16_slottable.h
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef _CRC16_TABLE_H__
#define _CRC16_TABLE_H__
diff --git a/src/crc64.c b/src/crc64.c
index 5a264e206..6c75bc60f 100644
--- a/src/crc64.c
+++ b/src/crc64.c
@@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "crc64.h"
#include "crcspeed.h"
diff --git a/src/crc64.h b/src/crc64.h
index e2e9ce7b7..42b940ff5 100644
--- a/src/crc64.h
+++ b/src/crc64.h
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef CRC64_H
#define CRC64_H
diff --git a/src/crcspeed.c b/src/crcspeed.c
index 9156005d3..14d0590c0 100644
--- a/src/crcspeed.c
+++ b/src/crcspeed.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "crcspeed.h"
diff --git a/src/crcspeed.h b/src/crcspeed.h
index ca8200b67..317ee8bcd 100644
--- a/src/crcspeed.h
+++ b/src/crcspeed.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef CRCSPEED_H
#define CRCSPEED_H
diff --git a/src/db.c b/src/db.c
index e0e40ed97..c02440d0c 100644
--- a/src/db.c
+++ b/src/db.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "cluster.h"
diff --git a/src/debug.c b/src/debug.c
index 012b138b6..f4f0f84d7 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "util.h"
diff --git a/src/debugmacro.h b/src/debugmacro.h
index d765f24d4..1cba43715 100644
--- a/src/debugmacro.h
+++ b/src/debugmacro.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef _REDICT_DEBUGMACRO_H_
#define _REDICT_DEBUGMACRO_H_
diff --git a/src/defrag.c b/src/defrag.c
index 38356fbf9..130e47eb2 100644
--- a/src/defrag.c
+++ b/src/defrag.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include
diff --git a/src/dict.c b/src/dict.c
index 291e23aee..9af26bef5 100644
--- a/src/dict.c
+++ b/src/dict.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "fmacros.h"
diff --git a/src/dict.h b/src/dict.h
index 96c827842..f3eb5c8f9 100644
--- a/src/dict.h
+++ b/src/dict.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __DICT_H
#define __DICT_H
diff --git a/src/endianconv.c b/src/endianconv.c
index 69862c83b..208da8d66 100644
--- a/src/endianconv.c
+++ b/src/endianconv.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
diff --git a/src/endianconv.h b/src/endianconv.h
index 826fcad87..5ff20e0f2 100644
--- a/src/endianconv.h
+++ b/src/endianconv.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __ENDIANCONV_H
#define __ENDIANCONV_H
diff --git a/src/eval.c b/src/eval.c
index c2b73cb9f..336ed9140 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "sha1.h"
diff --git a/src/evict.c b/src/evict.c
index 971038d8e..a56c89a90 100644
--- a/src/evict.c
+++ b/src/evict.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "bio.h"
diff --git a/src/expire.c b/src/expire.c
index b87d26e77..4ed50bd1b 100644
--- a/src/expire.c
+++ b/src/expire.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
diff --git a/src/fmacros.h b/src/fmacros.h
index 34796d33e..8e3bc0e84 100644
--- a/src/fmacros.h
+++ b/src/fmacros.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef _REDICT_FMACRO_H
#define _REDICT_FMACRO_H
diff --git a/src/fmtargs.h b/src/fmtargs.h
index f257a5b5e..b54ab7ee7 100644
--- a/src/fmtargs.h
+++ b/src/fmtargs.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef FMTARGS_H
#define FMTARGS_H
diff --git a/src/function_lua.c b/src/function_lua.c
index 89ca8c8ae..2faa0a498 100644
--- a/src/function_lua.c
+++ b/src/function_lua.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/*
* function_lua.c unit provides the Lua engine functionality.
diff --git a/src/functions.c b/src/functions.c
index 44165058b..1ce2c2549 100644
--- a/src/functions.c
+++ b/src/functions.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "functions.h"
#include "sds.h"
diff --git a/src/functions.h b/src/functions.h
index b3707c95f..68c80ba82 100644
--- a/src/functions.h
+++ b/src/functions.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __FUNCTIONS_H_
#define __FUNCTIONS_H_
diff --git a/src/geo.c b/src/geo.c
index 3688c2e0e..222cab72c 100644
--- a/src/geo.c
+++ b/src/geo.c
@@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "geo.h"
#include "geohash_helper.h"
diff --git a/src/geo.h b/src/geo.h
index 8aa608047..a2837a3ed 100644
--- a/src/geo.h
+++ b/src/geo.h
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __GEO_H__
#define __GEO_H__
diff --git a/src/geohash.c b/src/geohash.c
index b9ffe9761..ce5f36318 100644
--- a/src/geohash.c
+++ b/src/geohash.c
@@ -5,7 +5,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "geohash.h"
diff --git a/src/geohash.h b/src/geohash.h
index e03ebba98..b26c61474 100644
--- a/src/geohash.h
+++ b/src/geohash.h
@@ -5,7 +5,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef GEOHASH_H_
#define GEOHASH_H_
diff --git a/src/geohash_helper.c b/src/geohash_helper.c
index 965441685..dfee6de19 100644
--- a/src/geohash_helper.c
+++ b/src/geohash_helper.c
@@ -5,7 +5,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/* This is a C++ to C conversion from the ardb project.
* This file started out as:
diff --git a/src/geohash_helper.h b/src/geohash_helper.h
index d71b823ed..efd6d49a1 100644
--- a/src/geohash_helper.h
+++ b/src/geohash_helper.h
@@ -5,7 +5,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef GEOHASH_HELPER_HPP_
#define GEOHASH_HELPER_HPP_
diff --git a/src/hyperloglog.c b/src/hyperloglog.c
index 1911e3be8..0c76bab6b 100644
--- a/src/hyperloglog.c
+++ b/src/hyperloglog.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
diff --git a/src/intset.c b/src/intset.c
index dfd3af592..8a794857b 100644
--- a/src/intset.c
+++ b/src/intset.c
@@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
#include
diff --git a/src/intset.h b/src/intset.h
index 3ee4d9d41..3b3025c87 100644
--- a/src/intset.h
+++ b/src/intset.h
@@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __INTSET_H
#define __INTSET_H
diff --git a/src/kvstore.c b/src/kvstore.c
index d42475291..9bfcc2e34 100644
--- a/src/kvstore.c
+++ b/src/kvstore.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "fmacros.h"
diff --git a/src/kvstore.h b/src/kvstore.h
index 78adc9972..fa3368028 100644
--- a/src/kvstore.h
+++ b/src/kvstore.h
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef DICTARRAY_H_
#define DICTARRAY_H_
diff --git a/src/latency.c b/src/latency.c
index 69f1d1cec..fae980bcb 100644
--- a/src/latency.c
+++ b/src/latency.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "hdr_histogram.h"
diff --git a/src/latency.h b/src/latency.h
index c6d8b4505..0b89089ae 100644
--- a/src/latency.h
+++ b/src/latency.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __LATENCY_H
#define __LATENCY_H
diff --git a/src/lazyfree.c b/src/lazyfree.c
index 20bde6fc5..ecb654846 100644
--- a/src/lazyfree.c
+++ b/src/lazyfree.c
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "bio.h"
diff --git a/src/listpack.c b/src/listpack.c
index 25d8e191b..369592e80 100644
--- a/src/listpack.c
+++ b/src/listpack.c
@@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
#include
diff --git a/src/listpack.h b/src/listpack.h
index a1db6c343..e701d9b6b 100644
--- a/src/listpack.h
+++ b/src/listpack.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __LISTPACK_H
#define __LISTPACK_H
diff --git a/src/listpack_malloc.h b/src/listpack_malloc.h
index c9c7c9f10..4a5ab8a8a 100644
--- a/src/listpack_malloc.h
+++ b/src/listpack_malloc.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/* Allocator selection.
*
diff --git a/src/localtime.c b/src/localtime.c
index 3e8ba5875..00ab11c0c 100644
--- a/src/localtime.c
+++ b/src/localtime.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
diff --git a/src/logreqres.c b/src/logreqres.c
index 0b59f3b0c..b298fd470 100644
--- a/src/logreqres.c
+++ b/src/logreqres.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/* This file implements the interface of logging clients' requests and
* responses into a file.
diff --git a/src/lolwut.c b/src/lolwut.c
index 42cb502ab..d8dfef6ff 100644
--- a/src/lolwut.c
+++ b/src/lolwut.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "lolwut.h"
diff --git a/src/lolwut.h b/src/lolwut.h
index 491c943dd..d88b39ea3 100644
--- a/src/lolwut.h
+++ b/src/lolwut.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/* This structure represents our canvas. Drawing functions will take a pointer
* to a canvas to write to it. Later the canvas can be rendered to a string
diff --git a/src/lolwut5.c b/src/lolwut5.c
index 95c8dfc00..e62e6cf6c 100644
--- a/src/lolwut5.c
+++ b/src/lolwut5.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "lolwut.h"
diff --git a/src/lolwut6.c b/src/lolwut6.c
index c1deee6a9..724664cac 100644
--- a/src/lolwut6.c
+++ b/src/lolwut6.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "lolwut.h"
diff --git a/src/lzf.h b/src/lzf.h
index 54ba36d90..6bc2d01df 100644
--- a/src/lzf.h
+++ b/src/lzf.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef LZF_H
#define LZF_H
diff --git a/src/lzfP.h b/src/lzfP.h
index 3471c454e..710e90912 100644
--- a/src/lzfP.h
+++ b/src/lzfP.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef LZFP_h
#define LZFP_h
diff --git a/src/lzf_c.c b/src/lzf_c.c
index a583fcbe9..3ea7d8c9d 100644
--- a/src/lzf_c.c
+++ b/src/lzf_c.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "lzfP.h"
diff --git a/src/lzf_d.c b/src/lzf_d.c
index 50f9e896e..046c14f1b 100644
--- a/src/lzf_d.c
+++ b/src/lzf_d.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "lzfP.h"
diff --git a/src/memtest.c b/src/memtest.c
index aac108b68..26da65886 100644
--- a/src/memtest.c
+++ b/src/memtest.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
#include
diff --git a/src/mkreleasehdr.sh b/src/mkreleasehdr.sh
index c158054a5..dac6c9322 100755
--- a/src/mkreleasehdr.sh
+++ b/src/mkreleasehdr.sh
@@ -2,7 +2,7 @@
#
# SPDX-FileCopyrightText: 2024 Redict Contributors
#
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
GIT_SHA1=`(git show-ref --head --hash=8 2> /dev/null || echo 00000000) | head -n1`
GIT_DIRTY=`git diff --no-ext-diff -- ../src ../deps 2> /dev/null | wc -l`
BUILD_ID=`uname -n`"-"`date +%s`
diff --git a/src/module.c b/src/module.c
index 2ef17454c..8091e03b1 100644
--- a/src/module.c
+++ b/src/module.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/* --------------------------------------------------------------------------
* Modules API documentation information
diff --git a/src/modules/Makefile b/src/modules/Makefile
index c10644120..d8a4082da 100644
--- a/src/modules/Makefile
+++ b/src/modules/Makefile
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# find the OS
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
diff --git a/src/monotonic.c b/src/monotonic.c
index 6005849c2..14b396a63 100644
--- a/src/monotonic.c
+++ b/src/monotonic.c
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "monotonic.h"
#include
diff --git a/src/monotonic.h b/src/monotonic.h
index c16d19bc9..2afb9e745 100644
--- a/src/monotonic.h
+++ b/src/monotonic.h
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __MONOTONIC_H
#define __MONOTONIC_H
diff --git a/src/mt19937-64.c b/src/mt19937-64.c
index aece0503d..ce25fcd68 100644
--- a/src/mt19937-64.c
+++ b/src/mt19937-64.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "mt19937-64.h"
#include
diff --git a/src/mt19937-64.h b/src/mt19937-64.h
index b4fa84ec0..67444468b 100644
--- a/src/mt19937-64.h
+++ b/src/mt19937-64.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __MT19937_64_H
#define __MT19937_64_H
diff --git a/src/multi.c b/src/multi.c
index 04c94f9d0..c1d078d14 100644
--- a/src/multi.c
+++ b/src/multi.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
diff --git a/src/networking.c b/src/networking.c
index 8202cab48..4694e7e11 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "atomicvar.h"
diff --git a/src/notify.c b/src/notify.c
index 205eccfc7..af2cf9a63 100644
--- a/src/notify.c
+++ b/src/notify.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
diff --git a/src/object.c b/src/object.c
index 168b6a634..cf7811e81 100644
--- a/src/object.c
+++ b/src/object.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "functions.h"
diff --git a/src/pqsort.c b/src/pqsort.c
index 278493b05..1e9ecb7ea 100644
--- a/src/pqsort.c
+++ b/src/pqsort.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/* $NetBSD: qsort.c,v 1.19 2009/01/30 23:38:44 lukem Exp $ */
diff --git a/src/pqsort.h b/src/pqsort.h
index bf9b7e3a8..267868811 100644
--- a/src/pqsort.h
+++ b/src/pqsort.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __PQSORT_H
#define __PQSORT_H
diff --git a/src/pubsub.c b/src/pubsub.c
index 90aee89a1..80d54bc7c 100644
--- a/src/pubsub.c
+++ b/src/pubsub.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "cluster.h"
diff --git a/src/quicklist.c b/src/quicklist.c
index 285aaf7cb..087d110ca 100644
--- a/src/quicklist.c
+++ b/src/quicklist.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
#include /* for memcpy */
diff --git a/src/quicklist.h b/src/quicklist.h
index 793701927..be92d4af1 100644
--- a/src/quicklist.h
+++ b/src/quicklist.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include // for UINTPTR_MAX
diff --git a/src/rand.c b/src/rand.c
index 37b4271a8..a387c1b8a 100644
--- a/src/rand.c
+++ b/src/rand.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
diff --git a/src/rand.h b/src/rand.h
index ed9923cc8..8068a7f40 100644
--- a/src/rand.h
+++ b/src/rand.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef REDICT_RANDOM_H
#define REDICT_RANDOM_H
diff --git a/src/rax.c b/src/rax.c
index 97f18941f..985036204 100644
--- a/src/rax.c
+++ b/src/rax.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
#include
diff --git a/src/rax.h b/src/rax.h
index 7e2365a1d..59fa93961 100644
--- a/src/rax.h
+++ b/src/rax.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef RAX_H
#define RAX_H
diff --git a/src/rax_malloc.h b/src/rax_malloc.h
index 1ee01c651..7899a0ea6 100644
--- a/src/rax_malloc.h
+++ b/src/rax_malloc.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/* Allocator selection.
*
diff --git a/src/rdb.c b/src/rdb.c
index 97980c3dc..a8a8c38cf 100644
--- a/src/rdb.c
+++ b/src/rdb.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "lzf.h" /* LZF compression library */
diff --git a/src/rdb.h b/src/rdb.h
index 7ebd942c9..e441e82c1 100644
--- a/src/rdb.h
+++ b/src/rdb.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __RDB_H
#define __RDB_H
diff --git a/src/redict-benchmark.c b/src/redict-benchmark.c
index a4974cb4d..bb040422e 100644
--- a/src/redict-benchmark.c
+++ b/src/redict-benchmark.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "fmacros.h"
diff --git a/src/redict-check-aof.c b/src/redict-check-aof.c
index 2a5a5dc75..0266cc70e 100644
--- a/src/redict-check-aof.c
+++ b/src/redict-check-aof.c
@@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
diff --git a/src/redict-check-rdb.c b/src/redict-check-rdb.c
index 9c2bdc4cb..72bebd475 100644
--- a/src/redict-check-rdb.c
+++ b/src/redict-check-rdb.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "mt19937-64.h"
#include "server.h"
diff --git a/src/redict-cli.c b/src/redict-cli.c
index 303e09afb..138dc081b 100644
--- a/src/redict-cli.c
+++ b/src/redict-cli.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "fmacros.h"
diff --git a/src/redict-trib.rb b/src/redict-trib.rb
index be08df0e3..ae3ba5f8b 100755
--- a/src/redict-trib.rb
+++ b/src/redict-trib.rb
@@ -2,7 +2,7 @@
#
# SPDX-FileCopyrightText: 2024 Redict Contributors
#
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
def colorized(str, color)
return str if !(ENV['TERM'] || '')["xterm"]
diff --git a/src/redictassert.c b/src/redictassert.c
index 98fd827c8..df324c151 100644
--- a/src/redictassert.c
+++ b/src/redictassert.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
#include
diff --git a/src/redictassert.h b/src/redictassert.h
index 02fd0b462..895413c44 100644
--- a/src/redictassert.h
+++ b/src/redictassert.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __REDICT_ASSERT_H__
#define __REDICT_ASSERT_H__
diff --git a/src/release.c b/src/release.c
index fae79d36f..c2d26355a 100644
--- a/src/release.c
+++ b/src/release.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/* Every time the Redict Git SHA1 or Dirty status changes only this small
* file is recompiled, as we access this information in all the other
diff --git a/src/replication.c b/src/replication.c
index ab7bd8ff0..e31401d61 100644
--- a/src/replication.c
+++ b/src/replication.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "cluster.h"
diff --git a/src/resp_parser.c b/src/resp_parser.c
index 4eaa7b567..01046fbbf 100644
--- a/src/resp_parser.c
+++ b/src/resp_parser.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/* ----------------------------------------------------------------------------------------
* A RESP parser for parsing replies returned by RM_Call or Lua's
diff --git a/src/resp_parser.h b/src/resp_parser.h
index 04ed648e1..82e09b0cd 100644
--- a/src/resp_parser.h
+++ b/src/resp_parser.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef SRC_RESP_PARSER_H_
#define SRC_RESP_PARSER_H_
diff --git a/src/rio.c b/src/rio.c
index be65ee4f3..d70dbd157 100644
--- a/src/rio.c
+++ b/src/rio.c
@@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "fmacros.h"
#include "fpconv_dtoa.h"
diff --git a/src/rio.h b/src/rio.h
index 556ff9db2..c37a5c505 100644
--- a/src/rio.h
+++ b/src/rio.h
@@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __REDICT_RIO_H
#define __REDICT_RIO_H
diff --git a/src/script.c b/src/script.c
index aa974f644..99c7842ae 100644
--- a/src/script.c
+++ b/src/script.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "script.h"
diff --git a/src/script.h b/src/script.h
index 6bb1b637c..7d6580788 100644
--- a/src/script.h
+++ b/src/script.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __SCRIPT_H_
#define __SCRIPT_H_
diff --git a/src/script_lua.c b/src/script_lua.c
index f46fa6df7..9b35180f8 100644
--- a/src/script_lua.c
+++ b/src/script_lua.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "script_lua.h"
#include "fpconv_dtoa.h"
diff --git a/src/script_lua.h b/src/script_lua.h
index 3e496dd64..bcca68265 100644
--- a/src/script_lua.h
+++ b/src/script_lua.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __SCRIPT_LUA_H_
#define __SCRIPT_LUA_H_
diff --git a/src/sds.c b/src/sds.c
index 3364caa22..08887e210 100644
--- a/src/sds.c
+++ b/src/sds.c
@@ -5,7 +5,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
#include
diff --git a/src/sds.h b/src/sds.h
index 90f3dce28..f1434e2c1 100644
--- a/src/sds.h
+++ b/src/sds.h
@@ -5,7 +5,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __SDS_H
#define __SDS_H
diff --git a/src/sdsalloc.h b/src/sdsalloc.h
index 5188a3280..58a1f57db 100644
--- a/src/sdsalloc.h
+++ b/src/sdsalloc.h
@@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/* SDS allocator selection.
*
diff --git a/src/sentinel.c b/src/sentinel.c
index e629b5e94..096a0f919 100644
--- a/src/sentinel.c
+++ b/src/sentinel.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "hiredis.h"
diff --git a/src/server.c b/src/server.c
index 3fb8f2880..114909bcb 100644
--- a/src/server.c
+++ b/src/server.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "monotonic.h"
diff --git a/src/server.h b/src/server.h
index 90002f7d4..b0d2c4b9f 100644
--- a/src/server.h
+++ b/src/server.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __REDICT_H
#define __REDICT_H
diff --git a/src/setcpuaffinity.c b/src/setcpuaffinity.c
index 1c163c975..a30fb1d65 100644
--- a/src/setcpuaffinity.c
+++ b/src/setcpuaffinity.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
diff --git a/src/setproctitle.c b/src/setproctitle.c
index 577e61293..e66deceed 100644
--- a/src/setproctitle.c
+++ b/src/setproctitle.c
@@ -5,7 +5,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
diff --git a/src/sha1.c b/src/sha1.c
index 2a650b9df..5f0d8b13a 100644
--- a/src/sha1.c
+++ b/src/sha1.c
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/* from valgrind tests */
diff --git a/src/sha1.h b/src/sha1.h
index 6e5c21c37..51dc3c93b 100644
--- a/src/sha1.h
+++ b/src/sha1.h
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef SHA1_H
#define SHA1_H
diff --git a/src/sha256.c b/src/sha256.c
index 4ac92a5a9..078aa2096 100644
--- a/src/sha256.c
+++ b/src/sha256.c
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/*********************************************************************
* Filename: sha256.c
diff --git a/src/sha256.h b/src/sha256.h
index 321b58a48..3888e05f9 100644
--- a/src/sha256.h
+++ b/src/sha256.h
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/*********************************************************************
* Filename: sha256.h
diff --git a/src/siphash.c b/src/siphash.c
index 182030517..0fb586a2b 100644
--- a/src/siphash.c
+++ b/src/siphash.c
@@ -5,7 +5,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
#include
diff --git a/src/slowlog.c b/src/slowlog.c
index 7c71ac429..79df1b4c8 100644
--- a/src/slowlog.c
+++ b/src/slowlog.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "slowlog.h"
diff --git a/src/slowlog.h b/src/slowlog.h
index 97adc273b..fd2b0c044 100644
--- a/src/slowlog.h
+++ b/src/slowlog.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __SLOWLOG_H__
#define __SLOWLOG_H__
diff --git a/src/socket.c b/src/socket.c
index a67ced04b..5f9e93dea 100644
--- a/src/socket.c
+++ b/src/socket.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "connhelpers.h"
diff --git a/src/solarisfixes.h b/src/solarisfixes.h
index c67965107..133c32774 100644
--- a/src/solarisfixes.h
+++ b/src/solarisfixes.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#if defined(__sun)
diff --git a/src/sort.c b/src/sort.c
index fd57bac29..90df8aadf 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "pqsort.h" /* Partial qsort for SORT+LIMIT */
diff --git a/src/sparkline.c b/src/sparkline.c
index c38d9e9df..ad16c1533 100644
--- a/src/sparkline.c
+++ b/src/sparkline.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
diff --git a/src/sparkline.h b/src/sparkline.h
index ef4e821b1..31cc9a196 100644
--- a/src/sparkline.h
+++ b/src/sparkline.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __SPARKLINE_H
#define __SPARKLINE_H
diff --git a/src/stream.h b/src/stream.h
index 67fa13f16..003940f26 100644
--- a/src/stream.h
+++ b/src/stream.h
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef STREAM_H
#define STREAM_H
diff --git a/src/strl.c b/src/strl.c
index 55a2a054a..021c75b35 100644
--- a/src/strl.c
+++ b/src/strl.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
diff --git a/src/syncio.c b/src/syncio.c
index 258c97715..a2f3ca46b 100644
--- a/src/syncio.c
+++ b/src/syncio.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
diff --git a/src/syscheck.c b/src/syscheck.c
index d12a80d19..5343b7063 100644
--- a/src/syscheck.c
+++ b/src/syscheck.c
@@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "fmacros.h"
#include "config.h"
diff --git a/src/syscheck.h b/src/syscheck.h
index 560b4f05c..783c48c18 100644
--- a/src/syscheck.h
+++ b/src/syscheck.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __SYSCHECK_H
#define __SYSCHECK_H
diff --git a/src/t_hash.c b/src/t_hash.c
index c294596c6..861b2325a 100644
--- a/src/t_hash.c
+++ b/src/t_hash.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include
diff --git a/src/t_list.c b/src/t_list.c
index b4fc14170..de547ee6e 100644
--- a/src/t_list.c
+++ b/src/t_list.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
diff --git a/src/t_set.c b/src/t_set.c
index 46200b156..1c13f8937 100644
--- a/src/t_set.c
+++ b/src/t_set.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "intset.h" /* Compact integer set structure */
diff --git a/src/t_stream.c b/src/t_stream.c
index e85552e7f..8b9509bb1 100644
--- a/src/t_stream.c
+++ b/src/t_stream.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "endianconv.h"
diff --git a/src/t_string.c b/src/t_string.c
index c342ee7e9..4577a57a5 100644
--- a/src/t_string.c
+++ b/src/t_string.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include /* isnan(), isinf() */
diff --git a/src/t_zset.c b/src/t_zset.c
index 67ec5809b..0cdb905b3 100644
--- a/src/t_zset.c
+++ b/src/t_zset.c
@@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/*-----------------------------------------------------------------------------
* Sorted set API
diff --git a/src/testhelp.h b/src/testhelp.h
index ac5a73c66..672d6956a 100644
--- a/src/testhelp.h
+++ b/src/testhelp.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __TESTHELP_H
#define __TESTHELP_H
diff --git a/src/threads_mngr.c b/src/threads_mngr.c
index c8744e137..fc74a8847 100644
--- a/src/threads_mngr.c
+++ b/src/threads_mngr.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "threads_mngr.h"
/* Anti-warning macro... */
diff --git a/src/threads_mngr.h b/src/threads_mngr.h
index e41c808ac..f21e070ad 100644
--- a/src/threads_mngr.h
+++ b/src/threads_mngr.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#pragma once
diff --git a/src/timeout.c b/src/timeout.c
index a0efb2849..83d7a989f 100644
--- a/src/timeout.c
+++ b/src/timeout.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "cluster.h"
diff --git a/src/tls.c b/src/tls.c
index dc56fb3bf..b7b626ab0 100644
--- a/src/tls.c
+++ b/src/tls.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#define REDISMODULE_CORE_MODULE /* A module that's part of the redict core, uses server.h too. */
diff --git a/src/tracking.c b/src/tracking.c
index c90ce1b23..2413f94b4 100644
--- a/src/tracking.c
+++ b/src/tracking.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
diff --git a/src/unix.c b/src/unix.c
index d3e10a477..691dc22a6 100644
--- a/src/unix.c
+++ b/src/unix.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "server.h"
#include "connection.h"
diff --git a/src/util.c b/src/util.c
index 9ca023837..eb6cd650c 100644
--- a/src/util.c
+++ b/src/util.c
@@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "fmacros.h"
#include "fpconv_dtoa.h"
diff --git a/src/util.h b/src/util.h
index 73ddfb460..1ce11d2b1 100644
--- a/src/util.h
+++ b/src/util.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __REDICT_UTIL_H
#define __REDICT_UTIL_H
diff --git a/src/version.h b/src/version.h
index e64fcd325..56b8494de 100644
--- a/src/version.h
+++ b/src/version.h
@@ -2,7 +2,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#define REDICT_VERSION "255.255.255"
#define REDICT_VERSION_NUM 0x00ffffff
diff --git a/src/ziplist.c b/src/ziplist.c
index a49f1e55f..1a0a38f30 100644
--- a/src/ziplist.c
+++ b/src/ziplist.c
@@ -5,7 +5,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include
#include
diff --git a/src/ziplist.h b/src/ziplist.h
index 6a030c1b0..d8f2ce1df 100644
--- a/src/ziplist.h
+++ b/src/ziplist.h
@@ -4,7 +4,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef _ZIPLIST_H
#define _ZIPLIST_H
diff --git a/src/zipmap.c b/src/zipmap.c
index b71e8c1cd..863d0cdd6 100644
--- a/src/zipmap.c
+++ b/src/zipmap.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
/* Memory layout of a zipmap, for the map "foo" => "bar", "hello" => "world":
*
diff --git a/src/zipmap.h b/src/zipmap.h
index 1ff590e4f..c29f2aaba 100644
--- a/src/zipmap.h
+++ b/src/zipmap.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef _ZIPMAP_H
#define _ZIPMAP_H
diff --git a/src/zmalloc.c b/src/zmalloc.c
index 09d39d94c..85f3e811e 100644
--- a/src/zmalloc.c
+++ b/src/zmalloc.c
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#include "fmacros.h"
#include "config.h"
diff --git a/src/zmalloc.h b/src/zmalloc.h
index e929e4c08..c863b7d4b 100644
--- a/src/zmalloc.h
+++ b/src/zmalloc.h
@@ -3,7 +3,7 @@
// SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
//
// SPDX-License-Identifier: BSD-3-Clause
-// SPDX-License-Identifier: GPL-3.0-only
+// SPDX-License-Identifier: LGPL-3.0-only
#ifndef __ZMALLOC_H
#define __ZMALLOC_H
diff --git a/tests/cluster/cluster.tcl b/tests/cluster/cluster.tcl
index 562fc89a7..64b439111 100644
--- a/tests/cluster/cluster.tcl
+++ b/tests/cluster/cluster.tcl
@@ -3,7 +3,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Track cluster configuration as created by create_cluster below
set ::cluster_master_nodes 0
diff --git a/tests/cluster/run.tcl b/tests/cluster/run.tcl
index d93e58df1..0aa563704 100644
--- a/tests/cluster/run.tcl
+++ b/tests/cluster/run.tcl
@@ -3,7 +3,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
cd tests/cluster
source cluster.tcl
diff --git a/tests/cluster/tests/00-base.tcl b/tests/cluster/tests/00-base.tcl
index 18f044bc4..7488e40bb 100644
--- a/tests/cluster/tests/00-base.tcl
+++ b/tests/cluster/tests/00-base.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Check the basic monitoring and failover capabilities.
diff --git a/tests/cluster/tests/01-faildet.tcl b/tests/cluster/tests/01-faildet.tcl
index 584a46911..9cdfe9b23 100644
--- a/tests/cluster/tests/01-faildet.tcl
+++ b/tests/cluster/tests/01-faildet.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Check the basic monitoring and failover capabilities.
diff --git a/tests/cluster/tests/02-failover.tcl b/tests/cluster/tests/02-failover.tcl
index 5bb152bdb..450afc1c1 100644
--- a/tests/cluster/tests/02-failover.tcl
+++ b/tests/cluster/tests/02-failover.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Check the basic monitoring and failover capabilities.
diff --git a/tests/cluster/tests/03-failover-loop.tcl b/tests/cluster/tests/03-failover-loop.tcl
index 7e66429a1..046c5e125 100644
--- a/tests/cluster/tests/03-failover-loop.tcl
+++ b/tests/cluster/tests/03-failover-loop.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Failover stress test.
# In this test a different node is killed in a loop for N
diff --git a/tests/cluster/tests/04-resharding.tcl b/tests/cluster/tests/04-resharding.tcl
index 76efba3e6..d8bedaaca 100644
--- a/tests/cluster/tests/04-resharding.tcl
+++ b/tests/cluster/tests/04-resharding.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Failover stress test.
# In this test a different node is killed in a loop for N
diff --git a/tests/cluster/tests/05-slave-selection.tcl b/tests/cluster/tests/05-slave-selection.tcl
index 05de13117..258d681ff 100644
--- a/tests/cluster/tests/05-slave-selection.tcl
+++ b/tests/cluster/tests/05-slave-selection.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Slave selection test
# Check the algorithm trying to pick the slave with the most complete history.
diff --git a/tests/cluster/tests/06-slave-stop-cond.tcl b/tests/cluster/tests/06-slave-stop-cond.tcl
index bdfbef965..4e906e471 100644
--- a/tests/cluster/tests/06-slave-stop-cond.tcl
+++ b/tests/cluster/tests/06-slave-stop-cond.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Slave stop condition test
# Check that if there is a disconnection time limit, the slave will not try
diff --git a/tests/cluster/tests/07-replica-migration.tcl b/tests/cluster/tests/07-replica-migration.tcl
index 7841e3971..52b78dc7c 100644
--- a/tests/cluster/tests/07-replica-migration.tcl
+++ b/tests/cluster/tests/07-replica-migration.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Replica migration test.
# Check that orphaned masters are joined by replicas of masters having
diff --git a/tests/cluster/tests/08-update-msg.tcl b/tests/cluster/tests/08-update-msg.tcl
index 100d3f6c6..70755ee82 100644
--- a/tests/cluster/tests/08-update-msg.tcl
+++ b/tests/cluster/tests/08-update-msg.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Test UPDATE messages sent by other nodes when the currently authorirative
# master is unavailable. The test is performed in the following steps:
diff --git a/tests/cluster/tests/09-pubsub.tcl b/tests/cluster/tests/09-pubsub.tcl
index ef7762746..44ab5aa7f 100644
--- a/tests/cluster/tests/09-pubsub.tcl
+++ b/tests/cluster/tests/09-pubsub.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Test PUBLISH propagation across the cluster.
diff --git a/tests/cluster/tests/10-manual-failover.tcl b/tests/cluster/tests/10-manual-failover.tcl
index 543636bab..ccae3c9e9 100644
--- a/tests/cluster/tests/10-manual-failover.tcl
+++ b/tests/cluster/tests/10-manual-failover.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Check the manual failover
diff --git a/tests/cluster/tests/11-manual-takeover.tcl b/tests/cluster/tests/11-manual-takeover.tcl
index d42c24bf2..6eb43d7ae 100644
--- a/tests/cluster/tests/11-manual-takeover.tcl
+++ b/tests/cluster/tests/11-manual-takeover.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Manual takeover test
diff --git a/tests/cluster/tests/12-replica-migration-2.tcl b/tests/cluster/tests/12-replica-migration-2.tcl
index 4de81642f..c33f83271 100644
--- a/tests/cluster/tests/12-replica-migration-2.tcl
+++ b/tests/cluster/tests/12-replica-migration-2.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Replica migration test #2.
#
diff --git a/tests/cluster/tests/12.1-replica-migration-3.tcl b/tests/cluster/tests/12.1-replica-migration-3.tcl
index 81c000a4e..6eec989a2 100644
--- a/tests/cluster/tests/12.1-replica-migration-3.tcl
+++ b/tests/cluster/tests/12.1-replica-migration-3.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Replica migration test #2.
#
diff --git a/tests/cluster/tests/13-no-failover-option.tcl b/tests/cluster/tests/13-no-failover-option.tcl
index 63f701842..2b0186826 100644
--- a/tests/cluster/tests/13-no-failover-option.tcl
+++ b/tests/cluster/tests/13-no-failover-option.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Check that the no-failover option works
diff --git a/tests/cluster/tests/14-consistency-check.tcl b/tests/cluster/tests/14-consistency-check.tcl
index 364b9bffb..432e1a005 100644
--- a/tests/cluster/tests/14-consistency-check.tcl
+++ b/tests/cluster/tests/14-consistency-check.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
source "../tests/includes/init-tests.tcl"
source "../../../tests/support/cli.tcl"
diff --git a/tests/cluster/tests/15-cluster-slots.tcl b/tests/cluster/tests/15-cluster-slots.tcl
index 34ee7ad55..44f362787 100644
--- a/tests/cluster/tests/15-cluster-slots.tcl
+++ b/tests/cluster/tests/15-cluster-slots.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
source "../tests/includes/init-tests.tcl"
diff --git a/tests/cluster/tests/16-transactions-on-replica.tcl b/tests/cluster/tests/16-transactions-on-replica.tcl
index 9584933d2..39e305c38 100644
--- a/tests/cluster/tests/16-transactions-on-replica.tcl
+++ b/tests/cluster/tests/16-transactions-on-replica.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Check basic transactions on a replica.
diff --git a/tests/cluster/tests/17-diskless-load-swapdb.tcl b/tests/cluster/tests/17-diskless-load-swapdb.tcl
index f6cd353a5..16e6c3829 100644
--- a/tests/cluster/tests/17-diskless-load-swapdb.tcl
+++ b/tests/cluster/tests/17-diskless-load-swapdb.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Check that replica keys and keys to slots map are right after failing to diskless load using SWAPDB.
diff --git a/tests/cluster/tests/18-info.tcl b/tests/cluster/tests/18-info.tcl
index c6707ef0e..21b04424d 100644
--- a/tests/cluster/tests/18-info.tcl
+++ b/tests/cluster/tests/18-info.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Check cluster info stats
diff --git a/tests/cluster/tests/19-cluster-nodes-slots.tcl b/tests/cluster/tests/19-cluster-nodes-slots.tcl
index a314c58e0..47da981ed 100644
--- a/tests/cluster/tests/19-cluster-nodes-slots.tcl
+++ b/tests/cluster/tests/19-cluster-nodes-slots.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Optimize CLUSTER NODES command by generating all nodes slot topology firstly
diff --git a/tests/cluster/tests/20-half-migrated-slot.tcl b/tests/cluster/tests/20-half-migrated-slot.tcl
index 31af47329..06b722ecd 100644
--- a/tests/cluster/tests/20-half-migrated-slot.tcl
+++ b/tests/cluster/tests/20-half-migrated-slot.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Tests for fixing migrating slot at all stages:
# 1. when migration is half inited on "migrating" node
diff --git a/tests/cluster/tests/21-many-slot-migration.tcl b/tests/cluster/tests/21-many-slot-migration.tcl
index 44f2a6a41..1bd34a6f3 100644
--- a/tests/cluster/tests/21-many-slot-migration.tcl
+++ b/tests/cluster/tests/21-many-slot-migration.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Tests for many simultaneous migrations.
diff --git a/tests/cluster/tests/22-replica-in-sync.tcl b/tests/cluster/tests/22-replica-in-sync.tcl
index 14efb494f..a8b1b5484 100644
--- a/tests/cluster/tests/22-replica-in-sync.tcl
+++ b/tests/cluster/tests/22-replica-in-sync.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
source "../tests/includes/init-tests.tcl"
diff --git a/tests/cluster/tests/25-pubsubshard-slot-migration.tcl b/tests/cluster/tests/25-pubsubshard-slot-migration.tcl
index 565924943..580bff59b 100644
--- a/tests/cluster/tests/25-pubsubshard-slot-migration.tcl
+++ b/tests/cluster/tests/25-pubsubshard-slot-migration.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
source "../tests/includes/init-tests.tcl"
diff --git a/tests/cluster/tests/26-pubsubshard.tcl b/tests/cluster/tests/26-pubsubshard.tcl
index eb831bb15..f5f416c8a 100644
--- a/tests/cluster/tests/26-pubsubshard.tcl
+++ b/tests/cluster/tests/26-pubsubshard.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Test PUBSUB shard propagation in a cluster slot.
diff --git a/tests/cluster/tests/28-cluster-shards.tcl b/tests/cluster/tests/28-cluster-shards.tcl
index c6432cc0e..26578c984 100644
--- a/tests/cluster/tests/28-cluster-shards.tcl
+++ b/tests/cluster/tests/28-cluster-shards.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
source "../tests/includes/init-tests.tcl"
diff --git a/tests/cluster/tests/29-slot-migration-response.tcl b/tests/cluster/tests/29-slot-migration-response.tcl
index 181d9d345..59f0dac9f 100644
--- a/tests/cluster/tests/29-slot-migration-response.tcl
+++ b/tests/cluster/tests/29-slot-migration-response.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Tests for the response of slot migrations.
diff --git a/tests/cluster/tests/helpers/onlydots.tcl b/tests/cluster/tests/helpers/onlydots.tcl
index 7edf5a7f6..62aa28dd7 100644
--- a/tests/cluster/tests/helpers/onlydots.tcl
+++ b/tests/cluster/tests/helpers/onlydots.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Read the standard input and only shows dots in the output, filtering out
# all the other characters. Designed to avoid bufferization so that when
diff --git a/tests/cluster/tests/includes/init-tests.tcl b/tests/cluster/tests/includes/init-tests.tcl
index 155a4e234..94f504b45 100644
--- a/tests/cluster/tests/includes/init-tests.tcl
+++ b/tests/cluster/tests/includes/init-tests.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# Initialization tests -- most units will start including this.
diff --git a/tests/cluster/tests/includes/utils.tcl b/tests/cluster/tests/includes/utils.tcl
index f29e6cc85..ffe4a3ad5 100644
--- a/tests/cluster/tests/includes/utils.tcl
+++ b/tests/cluster/tests/includes/utils.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
source "../../../tests/support/cli.tcl"
diff --git a/tests/helpers/bg_block_op.tcl b/tests/helpers/bg_block_op.tcl
index c2176370e..9a795dcce 100644
--- a/tests/helpers/bg_block_op.tcl
+++ b/tests/helpers/bg_block_op.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
source tests/support/redict.tcl
source tests/support/util.tcl
diff --git a/tests/helpers/bg_complex_data.tcl b/tests/helpers/bg_complex_data.tcl
index 6574d8539..66e62d80a 100644
--- a/tests/helpers/bg_complex_data.tcl
+++ b/tests/helpers/bg_complex_data.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
source tests/support/redict.tcl
source tests/support/util.tcl
diff --git a/tests/helpers/fake_redict_node.tcl b/tests/helpers/fake_redict_node.tcl
index 725da3df8..e81ae0733 100644
--- a/tests/helpers/fake_redict_node.tcl
+++ b/tests/helpers/fake_redict_node.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
# A fake Redict node for replaying predefined/expected traffic with a client.
#
diff --git a/tests/helpers/gen_write_load.tcl b/tests/helpers/gen_write_load.tcl
index ba0137bff..1855427a4 100644
--- a/tests/helpers/gen_write_load.tcl
+++ b/tests/helpers/gen_write_load.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
source tests/support/redict.tcl
diff --git a/tests/instances.tcl b/tests/instances.tcl
index a4ad9c69a..bac9fbbfd 100644
--- a/tests/instances.tcl
+++ b/tests/instances.tcl
@@ -3,7 +3,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
package require Tcl 8.5
diff --git a/tests/integration/aof-multi-part.tcl b/tests/integration/aof-multi-part.tcl
index 559e53220..61dfb56ab 100644
--- a/tests/integration/aof-multi-part.tcl
+++ b/tests/integration/aof-multi-part.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
source tests/support/aofmanifest.tcl
set defaults {appendonly {yes} appendfilename {appendonly.aof} appenddirname {appendonlydir} auto-aof-rewrite-percentage {0}}
diff --git a/tests/integration/aof-race.tcl b/tests/integration/aof-race.tcl
index 54645e295..d0e75f3eb 100644
--- a/tests/integration/aof-race.tcl
+++ b/tests/integration/aof-race.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
source tests/support/aofmanifest.tcl
set defaults { appendonly {yes} appendfilename {appendonly.aof} appenddirname {appendonlydir} aof-use-rdb-preamble {no} }
diff --git a/tests/integration/aof.tcl b/tests/integration/aof.tcl
index bdf01f178..aa0e7c97d 100644
--- a/tests/integration/aof.tcl
+++ b/tests/integration/aof.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo
#
# SPDX-License-Identifier: BSD-3-Clause
-# SPDX-License-Identifier: GPL-3.0-only
+# SPDX-License-Identifier: LGPL-3.0-only
source tests/support/aofmanifest.tcl
set defaults { appendonly {yes} appendfilename {appendonly.aof} appenddirname {appendonlydir} auto-aof-rewrite-percentage {0}}
diff --git a/tests/integration/block-repl.tcl b/tests/integration/block-repl.tcl
index 7782f208d..6ef62684c 100644
--- a/tests/integration/block-repl.tcl
+++ b/tests/integration/block-repl.tcl
@@ -2,7 +2,7 @@
# SPDX-FileCopyrightText: 2024 Salvatore Sanfilippo