From 3812c139a6580113572f68ea1a8fd277d410777c Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Fri, 17 Feb 2023 18:25:34 -0300 Subject: Fix EOL at EOF Commands used to search and replace: $ git grep -Ilz '.' | xargs -0 -I '{}' sh -c \ "printf '%s\n' \"\$(cat '{}')\" >'{}'" The above commands ensure that there is exaclty 1 line terminator at EOF (rather than 0 or more than 1) on all non-empty text files. This fixes all of the "new blank line at EOF" errors raised by git: $ git diff --check 4b825dc642cb6eb9a060e54bf8d69288fbee4904..HEAD | grep '^[^+]' | cut -f 3 -d : | LC_ALL=C sort | uniq -c 21 new blank line at EOF. 72 space before tab in indent. 4 trailing whitespace. --- src/jailcheck/apparmor.c | 1 - src/jailcheck/network.c | 3 --- src/jailcheck/utils.c | 1 - 3 files changed, 5 deletions(-) (limited to 'src/jailcheck') diff --git a/src/jailcheck/apparmor.c b/src/jailcheck/apparmor.c index 9b6b72fb7..658928ed5 100644 --- a/src/jailcheck/apparmor.c +++ b/src/jailcheck/apparmor.c @@ -37,4 +37,3 @@ void apparmor_test(pid_t pid) { return; } #endif - diff --git a/src/jailcheck/network.c b/src/jailcheck/network.c index 961a66105..a4d5eeec1 100644 --- a/src/jailcheck/network.c +++ b/src/jailcheck/network.c @@ -52,6 +52,3 @@ void network_test(void) { else printf(" Networking: disabled\n"); } - - - diff --git a/src/jailcheck/utils.c b/src/jailcheck/utils.c index 8460c1bf7..97fe8833b 100644 --- a/src/jailcheck/utils.c +++ b/src/jailcheck/utils.c @@ -99,4 +99,3 @@ int find_child(int id) { // this happens for processes sandboxed with --join return first_child; } - -- cgit v1.2.3-54-g00ecf