From: Karel Zak Date: Mon, 5 Dec 2022 11:51:03 +0000 (+0100) Subject: tests: add SPDX-License-Identifier to helper X-Git-Tag: v2.39-rc1~388 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08431acdf5b3accd0887ab550bfa4efabed751d6;p=thirdparty%2Futil-linux.git tests: add SPDX-License-Identifier to helper The default util-linux license is GPL-2.0-or-later. The header is missing in some files or quotation from the license is incomplete. It seem the best is to use the License-Identifier header to make things more obvious and readable for code analyzers, etc. Fixes: https://github.com/util-linux/util-linux/issues/1932 Signed-off-by: Karel Zak --- diff --git a/tests/helpers/test_byteswap.c b/tests/helpers/test_byteswap.c index 1b98f76974..d8a7b2fc66 100644 --- a/tests/helpers/test_byteswap.c +++ b/tests/helpers/test_byteswap.c @@ -1,11 +1,10 @@ /* + * SPDX-License-Identifier: GPL-2.0-or-later + * * This testing program makes sure the byteswap functions work * * Copyright (C) 2000 by Theodore Ts'o. * Copyright (C) 2008 Karel Zak - * - * This file may be redistributed under the terms of the GNU Public - * License. */ #include #include diff --git a/tests/helpers/test_mbsencode.c b/tests/helpers/test_mbsencode.c index a8f93836cd..44d88f90c1 100644 --- a/tests/helpers/test_mbsencode.c +++ b/tests/helpers/test_mbsencode.c @@ -1,19 +1,10 @@ /* + * SPDX-License-Identifier: GPL-2.0-or-later + * * Copyright (C) 2018 Vaclav Dolezal * * This file is part of util-linux. - * - * This file is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This file 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. */ - #include #include #include diff --git a/tests/helpers/test_md5.c b/tests/helpers/test_md5.c index 6f8dec4aab..8f2f686bcf 100644 --- a/tests/helpers/test_md5.c +++ b/tests/helpers/test_md5.c @@ -1,4 +1,8 @@ - +/* + * SPDX-License-Identifier: GPL-2.0-or-later + * + * Copyright (C) 2008 Karel Zak + */ #include #include diff --git a/tests/helpers/test_sha1.c b/tests/helpers/test_sha1.c index ad96da4f00..e2a5f0199d 100644 --- a/tests/helpers/test_sha1.c +++ b/tests/helpers/test_sha1.c @@ -1,4 +1,8 @@ - +/* + * SPDX-License-Identifier: GPL-2.0-or-later + * + * Copyright (C) 2017 Philip Prindeville + */ #include #include diff --git a/tests/helpers/test_sigreceive.c b/tests/helpers/test_sigreceive.c index 12b563a0ef..8f83e05940 100644 --- a/tests/helpers/test_sigreceive.c +++ b/tests/helpers/test_sigreceive.c @@ -1,20 +1,9 @@ /* + * SPDX-License-Identifier: GPL-2.0-or-later + * * test_sigreceive - wait for signal and exit with value of it * * Written by Sami Kerola - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would 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, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include diff --git a/tests/helpers/test_strerror.c b/tests/helpers/test_strerror.c index cd72f7871c..a574c6ef3f 100644 --- a/tests/helpers/test_strerror.c +++ b/tests/helpers/test_strerror.c @@ -1,11 +1,10 @@ /* + * SPDX-License-Identifier: GPL-2.0-or-later + * * This test program prints errno messages to allow for portable * verification of error messages. * * Copyright (C) 2019 Patrick Steinhardt diff --git a/tests/helpers/test_sysinfo.c b/tests/helpers/test_sysinfo.c index f098843819..ef7515c120 100644 --- a/tests/helpers/test_sysinfo.c +++ b/tests/helpers/test_sysinfo.c @@ -1,4 +1,6 @@ /* + * SPDX-License-Identifier: GPL-2.0-or-later + * * Copyright (C) 2007 Karel Zak * * This file is part of util-linux. diff --git a/tests/helpers/test_tiocsti.c b/tests/helpers/test_tiocsti.c index c2213f506a..c92645ab59 100644 --- a/tests/helpers/test_tiocsti.c +++ b/tests/helpers/test_tiocsti.c @@ -1,20 +1,9 @@ /* + * SPDX-License-Identifier: GPL-2.0-or-later + * * test_tiocsti - test security of TIOCSTI * * Written by Federico Bento - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it would 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, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include diff --git a/tests/helpers/test_uuid_namespace.c b/tests/helpers/test_uuid_namespace.c index 1522ed2bc9..3ee6aca688 100644 --- a/tests/helpers/test_uuid_namespace.c +++ b/tests/helpers/test_uuid_namespace.c @@ -1,3 +1,8 @@ +/* + * SPDX-License-Identifier: GPL-2.0-or-later + * + * Copyright (C) 2017 Philip Prindeville + */ #include #include #include