chiark / gitweb /
tree-wide: drop copyright headers from frequent contributors
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Jun 2018 09:58:53 +0000 (11:58 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
Fixes #9320.

for p in Shapovalov Chevalier Rozhkov Sievers Mack Herrmann Schmidt Rudenberg Sahani Landden Andersen Watanabe; do
  git grep -e 'Copyright.*'$p -l|xargs perl -i -0pe 's|/([*][*])?[*]\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\s*[*]([*][*])?/\n*|\n|gms; s|\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\n*|\n|gms'
done

30 files changed:
man/glib-event-glue.c
shell-completion/bash/portablectl
shell-completion/bash/resolvectl
src/basic/conf-files.h
src/basic/format-util.h
src/basic/hash-funcs.c
src/basic/hash-funcs.h
src/basic/hashmap.c
src/basic/hashmap.h
src/basic/mempool.c
src/basic/mempool.h
src/basic/mkdir-label.c
src/basic/mkdir.h
src/basic/unaligned.h
src/basic/utf8.c
src/login/logind-session-device.c
src/login/logind-session-device.h
src/login/logind-utmp.c
src/test/test-conf-parser.c
src/test/test-copy.c
src/test/test-ellipsize.c
src/test/test-exec-util.c
src/test/test-extract-word.c
src/test/test-locale-util.c
src/test/test-parse-util.c
src/test/test-process-util.c
src/test/test-siphash24.c
src/test/test-unaligned.c
src/test/test-util.c
tools/gdb-sd_dump_hashmaps.py

index 34635f3d08874efc450dd02875e2cc788162d879..15e2bdb6a3dcb72f60f2363f13e91aedc46f786e 100644 (file)
@@ -1,10 +1,10 @@
 /* SPDX-License-Identifier: MIT */
-/* Copyright © 2014 Tom Gundersen */
 
 #include <stdlib.h>
 //#include <elogind/sd-event.h>
 //#include <glib.h>
-//#include <elogind/sd-event.h>
+#include <glib.h>
+#include <systemd/sd-event.h>
 
 typedef struct SDEventSource {
   GSource source;
index afcaadf7d809404bbe6a3e2a911f9e7116b84c4b..80bec8f22f76c958f8d0053a048a55c631b3d719 100644 (file)
@@ -3,7 +3,6 @@
 #
 # This file is part of elogind.
 #
-# Copyright © 2018 Yu Watanabe
 #
 # elogind is free software; you can redistribute it and/or modify it
 # under the terms of the GNU Lesser General Public License as published by
index bec8b759e2299bd9be619a05f4d67e0fab40f05b..367f9c7c84b259ac0e6e07bb5e9f74dca5f7ae15 100644 (file)
@@ -3,7 +3,6 @@
 #
 # This file is part of elogind.
 #
-# Copyright © 2018 Yu Watanabe
 #
 # elogind is free software; you can redistribute it and/or modify it
 # under the terms of the GNU Lesser General Public License as published by
index 7bd0e25edc5c17f6fd205a4af09c91265cea8e53..9da03ed228ed3dc9738e0c1d483831f70c867366 100644 (file)
@@ -1,9 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 #pragma once
 
-/***
-  Copyright © 2010-2012 Kay Sievers
-***/
 
 enum {
         CONF_FILES_EXECUTABLE    = 1 << 0,
index 81c59ac8c09097409a07c5bf297b461aea4a698e..160550cd682e8d0afc996ffba80058c8126176ad 100644 (file)
@@ -1,9 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 #pragma once
 
-/***
-  Copyright © 2015 Ronny Chevalier
-***/
 
 #include <inttypes.h>
 
index 2892346886fad86fd658177ae2bcf7cd0065ce74..db48437be754ea03d972e1b8bbd561a3b9a8fdf5 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2014 Michal Schmidt
-***/
 
 #include <string.h>
 
index 3715c56e07f91a6c221c9badae8d8bcf33a33884..5e5989f0215bb21133ba05563eba93644cfb6277 100644 (file)
@@ -1,9 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 #pragma once
 
-/***
-  Copyright © 2014 Michal Schmidt
-***/
 
 #include "macro.h"
 #include "siphash24.h"
index 5dff27425585cd8edb1882196e32df4ddb3d47d8..15c8c88167d63bfdf20344af1257945b3bb0992d 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2014 Michal Schmidt
-***/
 
 #include <errno.h>
 #include <stdint.h>
index d1d1b9c8a40fd0a68178cf6f8e6721917829dbd7..5c70c102d7fef6f2a6be8dfdda92c7f1586c95e8 100644 (file)
@@ -1,9 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 #pragma once
 
-/***
-  Copyright © 2014 Michal Schmidt
-***/
 
 #include <limits.h>
 #include <stdbool.h>
index 567f6b916e6cc06bcb73bf47cac1d159674a5c1d..a5ec8a1020362c8dea7af0265f2bac17057740f7 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2014 Michal Schmidt
-***/
 
 #include <stdint.h>
 #include <stdlib.h>
index 291415deb050f3214e15b940c3e546b5eeaf9d81..2a41cb358ca8b236324c29fccda356315fdf7f97 100644 (file)
@@ -1,9 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 #pragma once
 
-/***
-  Copyright © 2014 Michal Schmidt
-***/
 
 #include <stddef.h>
 
index d5c972d729340f90670b6d6ca4826144dfadcab8..07799ab0154a05ee900e5c51979c3487e8a5de0c 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2013 Kay Sievers
-***/
 
 #include <stdio.h>
 #include <sys/stat.h>
index 517dbe07d170cb001dc588a4ea894a60cd36f65d..8016c38e9d57bcdc9a6cfcd0c9ac19bcba30806b 100644 (file)
@@ -1,9 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 #pragma once
 
-/***
-  Copyright © 2013 Kay Sievers
-***/
 
 #include <sys/types.h>
 
index 965a5fe99cd399b43991c374e994cf986c78b5b6..8a1d06445e5a74bdfa995e089fbc130aa79f76cf 100644 (file)
@@ -1,9 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 #pragma once
 
-/***
-  Copyright © 2014 Tom Gundersen
-***/
 
 #include <endian.h>
 #include <stdint.h>
index 2bdda21af7d024ffb4e90abb8529ebead2c68f64..42818358ea828e9f4b0d7c0e6559c2daab385a32 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2008-2011 Kay Sievers
-***/
 
 /* Parts of this file are based on the GLIB utf8 validation functions. The
  * original license text follows. */
index e10b810dc0a55e7e4a83a793c4398633524fa164..50e20f96145e78fe45ae627a421341572275ebc7 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2013 David Herrmann
-***/
 
 #include <fcntl.h>
 #include <linux/input.h>
index 81b9dcf123430994051ce35626c261ff7bbe80d2..f42c0218c0315cf91cdb77c188ee5acdb2ae11d3 100644 (file)
@@ -1,9 +1,6 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 #pragma once
 
-/***
-  Copyright © 2013 David Herrmann
-***/
 
 typedef enum DeviceType DeviceType;
 typedef struct SessionDevice SessionDevice;
index 37ae05e8b75df636c079f5287ee4089563f904c4..f18147688a2852e7594a71fdb0819c00728db9a7 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2015 Daniel Mack
-***/
 
 #include <errno.h>
 #include <pwd.h>
index 9a9e7ab4d7161361f8e38d5d10497c229f902b59..a8df45941cb387384993c724daa2c545116b1d13 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2015 Ronny Chevalier
-***/
 
 #include "conf-parser.h"
 #include "fd-util.h"
index b893c49963738c27571fcd86e0a47b91d307254c..b3dfedd36c98c77f308319e28a8197466d313073 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2014 Ronny Chevalier
-***/
 
 #include <unistd.h>
 
@@ -240,7 +237,26 @@ static void test_copy_bytes_regular_file(const char *src, bool try_reflink, uint
         unlink(fn3);
 }
 
+static void test_copy_atomic(void) {
+        _cleanup_(rm_rf_physical_and_freep) char *p = NULL;
+        const char *q;
+        int r;
+
+        assert_se(mkdtemp_malloc(NULL, &p) >= 0);
+
+        q = strjoina(p, "/fstab");
+
+        r = copy_file_atomic("/etc/fstab", q, 0644, 0, COPY_REFLINK);
+        if (r == -ENOENT)
+                return;
+
+        assert_se(copy_file_atomic("/etc/fstab", q, 0644, 0, COPY_REFLINK) == -EEXIST);
+
+        assert_se(copy_file_atomic("/etc/fstab", q, 0644, 0, COPY_REPLACE) >= 0);
+}
+
 int main(int argc, char *argv[]) {
+        log_set_max_level(LOG_DEBUG);
 
 #if 0 /// UNNEEDED by elogind
         test_copy_file();
@@ -254,6 +270,7 @@ int main(int argc, char *argv[]) {
         test_copy_bytes_regular_file(argv[0], true, 1000);
         test_copy_bytes_regular_file(argv[0], false, 32000); /* larger than copy buffer size */
         test_copy_bytes_regular_file(argv[0], true, 32000);
+        test_copy_atomic();
 
         return 0;
 }
index 662d1e7cc33335d5d688e33adbc6621c9b653402..5e0c7577f9c267eed75ded8e7f6c207e21a16b16 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2013 Shawn Landden
-***/
 
 #include <stdio.h>
 
index d0e20ee6d78994b1171cdee206dbebeef37270f7..03032839125ff5f27e01cec181b9fd12d31339b0 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2013 Thomas H.P. Andersen
-***/
 
 #include <errno.h>
 #include <string.h>
index 66f30304d7cd57ff77c0ab41f13fa0aae1c3269e..c347605a926c30716b11a0eb332beb617cad719f 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2013 Thomas H.P. Andersen
-***/
 
 #include <errno.h>
 #include <stdlib.h>
index 5b835566f376de1249ea021aa1be72f6cc62d448..8ffae8ca03d08bd7305b75b2a7bfe7a09a4abae2 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2014 Ronny Chevalier
-***/
 
 #include "locale-util.h"
 #include "macro.h"
index 757ebd629e9fbcef5369fe27301e36ebd76c558e..73688952f005e733b4468fe6b41d22d906dd4357 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2013 Thomas H.P. Andersen
-***/
 
 #include <errno.h>
 #include <locale.h>
index a57bd8c7f93b2199872d13e40542aa52b28c1cce..bbaf3f92514deaa86f119f53e06d93bbad2b626c 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2013 Thomas H.P. Andersen
-***/
 
 #include <sched.h>
 #include <sys/mount.h>
index e340388d8d46c6fd05a1871ddc1b30839509ac45..218200e480762de3a0aa3dbca3f75d18ad0a6f98 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2015 Tom Gundersen
-***/
 
 #include "siphash24.h"
 #include "util.h"
index 853312e58bda19fb7ef10099558329a4b04440df..96d6b22be37113dc980e5ebc18470ce5c1514a5c 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2014 Tom Gundersen
-***/
 
 #include "sparse-endian.h"
 #include "unaligned.h"
index cf0fbc509e10618efb73c58dcdfb0f9514943d9e..36dfeb5c32ec494067b82ea20d7984ae2f0c22e9 100644 (file)
@@ -1,7 +1,4 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
-/***
-  Copyright © 2013 Thomas H.P. Andersen
-***/
 
 #include <errno.h>
 #include <string.h>
index 82c21793e0dd43ad0fc5041cea5c043550877bbf..27572bebbf40453ab9a2c28e5977ada076064500 100755 (executable)
@@ -1,8 +1,6 @@
 #!/usr/bin/env python3
 #  -*- Mode: python; coding: utf-8; indent-tabs-mode: nil -*- */
 # SPDX-License-Identifier: LGPL-2.1+
-#
-#  Copyright © 2014 Michal Schmidt
 
 import gdb