]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: add SPDX-License-Identifier to helper
authorKarel Zak <kzak@redhat.com>
Mon, 5 Dec 2022 11:51:03 +0000 (12:51 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 5 Dec 2022 11:51:03 +0000 (12:51 +0100)
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 <kzak@redhat.com>
tests/helpers/test_byteswap.c
tests/helpers/test_mbsencode.c
tests/helpers/test_md5.c
tests/helpers/test_sha1.c
tests/helpers/test_sigreceive.c
tests/helpers/test_strerror.c
tests/helpers/test_sysinfo.c
tests/helpers/test_tiocsti.c
tests/helpers/test_uuid_namespace.c

index 1b98f769746f816e0e17d30ad91bba6f3edf798b..d8a7b2fc660e9d9bfc230676d6f6130cb85e56f9 100644 (file)
@@ -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 <kzak@redhat.com>
- *
- * This file may be redistributed under the terms of the GNU Public
- * License.
  */
 #include <stdio.h>
 #include <string.h>
index a8f93836cdadd9299bbae0ad2dddd595653b080f..44d88f90c1751578531ebde2817f8cf4a00c98dc 100644 (file)
@@ -1,19 +1,10 @@
 /*
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ *
  * Copyright (C) 2018 Vaclav Dolezal <vdolezal@redhat.com>
  *
  * 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 <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 6f8dec4aabc7614bb5687b9fa1e95548c65142f4..8f2f686bcfed7415af29d3deba3fa11749c667c9 100644 (file)
@@ -1,4 +1,8 @@
-
+/*
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ *
+ * Copyright (C) 2008 Karel Zak <kzak@redhat.com>
+ */
 #include <stdio.h>
 #include <unistd.h>
 
index ad96da4f001023766591ea1d0989476ec77266c0..e2a5f0199d49c3e3721d4105352cdc6cc400f4b3 100644 (file)
@@ -1,4 +1,8 @@
-
+/*
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ *
+ * Copyright (C) 2017 Philip Prindeville <philipp@redfish-solutions.com>
+ */
 #include <stdio.h>
 #include <unistd.h>
 
index 12b563a0ef8a4c51070691cdd40fdaa5ace5dc2b..8f83e05940c88dd5feab5e68767e98ae00cc6fd1 100644 (file)
@@ -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 <kerolasa@iki.fi>
- *
- * 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 <err.h>
index cd72f7871cfb74018f0478d2c3b7286e3e60e651..a574c6ef3fac1d275250f6fe9c0290de8b66ab30 100644 (file)
@@ -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 <ps@pks.im
- *
- * This file may be redistributed under the terms of the GNU Public
- * License.
  */
 
 #include <errno.h>
index f09884381940071e12d2bb6673112fa4aef8c046..ef7515c120288cc4c0d589cb5ee8227c50b13756 100644 (file)
@@ -1,4 +1,6 @@
 /*
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ *
  * Copyright (C) 2007 Karel Zak <kzak@redhat.com>
  *
  * This file is part of util-linux.
index c2213f506a2ebdfd2ce3d114c76215b819b59ba7..c92645ab59bcd20f3c9aa001a118d37df82fd7db 100644 (file)
@@ -1,20 +1,9 @@
 /*
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ *
  * test_tiocsti - test security of TIOCSTI
  *
  * Written by Federico Bento <up201407890@alunos.dcc.fc.up.pt>
- *
- * 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 <stdlib.h>
index 1522ed2bc909be0d6ef2eb0e629334425719a675..3ee6aca688dd68a7edcba03c4b57d8d8c73558cc 100644 (file)
@@ -1,3 +1,8 @@
+/*
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ *
+ * Copyright (C) 2017 Philip Prindeville <philipp@redfish-solutions.com>
+ */
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>