diff options
author | 2023-02-17 18:25:34 -0300 | |
---|---|---|
committer | 2023-02-19 20:57:12 -0300 | |
commit | 3812c139a6580113572f68ea1a8fd277d410777c (patch) | |
tree | 52b196e95a9ef510a1dc4c3648610ecb07cbeadb /src/fids | |
parent | RELNOTES: add build and docs items (diff) | |
download | firejail-3812c139a6580113572f68ea1a8fd277d410777c.tar.gz firejail-3812c139a6580113572f68ea1a8fd277d410777c.tar.zst firejail-3812c139a6580113572f68ea1a8fd277d410777c.zip |
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.
Diffstat (limited to 'src/fids')
-rw-r--r-- | src/fids/config | 1 | ||||
-rw-r--r-- | src/fids/db.c | 1 | ||||
-rw-r--r-- | src/fids/db_exclude.c | 1 |
3 files changed, 0 insertions, 3 deletions
diff --git a/src/fids/config b/src/fids/config index c18c97260..7828622e8 100644 --- a/src/fids/config +++ b/src/fids/config | |||
@@ -13,4 +13,3 @@ | |||
13 | /home/netblue/Desktop/*.desktop | 13 | /home/netblue/Desktop/*.desktop |
14 | /home/netblue/.ssh | 14 | /home/netblue/.ssh |
15 | /home/netblue/.gnupg | 15 | /home/netblue/.gnupg |
16 | |||
diff --git a/src/fids/db.c b/src/fids/db.c index 6a21a4e14..7cad11cca 100644 --- a/src/fids/db.c +++ b/src/fids/db.c | |||
@@ -155,4 +155,3 @@ errexit: | |||
155 | fprintf(stderr, "Error fids: database corrupted\n"); | 155 | fprintf(stderr, "Error fids: database corrupted\n"); |
156 | exit(1); | 156 | exit(1); |
157 | } | 157 | } |
158 | |||
diff --git a/src/fids/db_exclude.c b/src/fids/db_exclude.c index 18a05209a..aedb95e4f 100644 --- a/src/fids/db_exclude.c +++ b/src/fids/db_exclude.c | |||
@@ -53,4 +53,3 @@ int db_exclude_check(const char *fname) { | |||
53 | 53 | ||
54 | return 0; | 54 | return 0; |
55 | } | 55 | } |
56 | |||