Skip to contentSkip to conversation

test: correct strlcat license information

PATCH Superseded Denis 'GNUtoo' Carikli 3 participants 5 messages Nov 24, 2025 – Dec 3, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test: correct strlcat license information

The GPL-2.1 isn't a valid license.

The copyright header says that "These tests adapted from glibc's string/test-strncat.c" and test-strncat.c is under the LGPL-2.1+.

This was reported to us by Leah Rowe.

---
 test/lib/strlcat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/lib/strlcat.c +1 -1
index d1a0293271b..70982d5cd68 100644
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.1+
+// SPDX-License-Identifier: LGPL-2.1+
 /*
  * Copyright (C) 2021 Sean Anderson <[email protected]>
  * Copyright (C) 2011-2021 Free Software Foundation, Inc.

base-commit: 4a4871e3dc38f3f771d2713b805e79e6191b4297

Signature · 1 line
2.34.1
#1 lore raw
Quoted 17 lines · Denis 'GNUtoo' Carikli

The GPL-2.1 isn't a valid license.

The copyright header says that "These tests adapted from glibc's string/test-strncat.c" and test-strncat.c is under the LGPL-2.1+.

This was reported to us by Leah Rowe.

---
 test/lib/strlcat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/lib/strlcat.c +0 -0
index d1a0293271b..70982d5cd68 100644

test/lib/strlcat.c line 1

Quoted 2 lines
test/lib/strlcat.c +1 -1
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.1+
+// SPDX-License-Identifier: LGPL-2.1+

Thanks for the report and confirmation on what's correct. Can you please use the "or-later" syntax and not the deprecated "+" syntax on the tag?

Signature · 1 line
Tom
#2 lore raw

PATCH v2 1/1 test: correct strlcat license information

The GPL-2.1 isn't a valid license.

The copyright header says that "These tests adapted from glibc's string/test-strncat.c" and test-strncat.c is under the LGPL-2.1-or-later.

This was reported to us by Leah Rowe.

---
ChangeLog v1->v2:
* Fixed the SPDX license identifier (LGPL-2.1+ like names are used Guix and I'm used to that, sorry for not spoting the issue). I've updated the commit message accordingly.
* Rebased on the 'next' branch.

---
 test/lib/strlcat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/lib/strlcat.c +1 -1
index d1a0293271b..dead1dfc70e 100644
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.1+
+// SPDX-License-Identifier: LGPL-2.1-or-later
 /*
  * Copyright (C) 2021 Sean Anderson <[email protected]>
  * Copyright (C) 2011-2021 Free Software Foundation, Inc.

base-commit: 42a4ff5f63baacc414b564c02541cd1f5c0862ee

Signature · 1 line
2.51.2
#4 lore raw
In reply to Denis 'GNUtoo' Carikli
Quoted 30 lines · Denis 'GNUtoo' Carikli

The GPL-2.1 isn't a valid license.

The copyright header says that "These tests adapted from glibc's string/test-strncat.c" and test-strncat.c is under the LGPL-2.1-or-later.

This was reported to us by Leah Rowe.

---
ChangeLog v1->v2:
* Fixed the SPDX license identifier (LGPL-2.1+ like names are used Guix and I'm used to that, sorry for not spoting the issue). I've updated the commit message accordingly.
* Rebased on the 'next' branch.

---
  test/lib/strlcat.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
test/lib/strlcat.c +1 -1
index d1a0293271b..dead1dfc70e 100644
@@ -1,4 +1,4 @@
-// SPDX-License-Identifier: GPL-2.1+
+// SPDX-License-Identifier: LGPL-2.1-or-later
  /*
   * Copyright (C) 2021 Sean Anderson <[email protected]>
   * Copyright (C) 2011-2021 Free Software Foundation, Inc.
Quoted 1 line

base-commit: 42a4ff5f63baacc414b564c02541cd1f5c0862ee

My intent was to relicense this under the GPL per the terms of the LGPL.

--Sean