aboutsummaryrefslogtreecommitdiffstats
path: root/src/firecfg
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-02-19 14:26:15 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-02-20 17:39:31 -0300
commit490051f71494e828f2020257c012c3b28398d852 (patch)
treee565f37c36d9573dd9d95c2028361012f1132989 /src/firecfg
parent.gitattributes: mark some binary files as such (diff)
downloadfirejail-490051f71494e828f2020257c012c3b28398d852.tar.gz
firejail-490051f71494e828f2020257c012c3b28398d852.tar.zst
firejail-490051f71494e828f2020257c012c3b28398d852.zip
Fix space before/after tab in indent
This fixes all of the "space before tab in indent" errors raised by git: $ git diff --check 4b825dc642cb6eb9a060e54bf8d69288fbee4904..HEAD | grep '^[^+]' | cut -f 3 -d : | LC_ALL=C sort | uniq -c 72 space before tab in indent. Commands used to find the errors: $ git diff --check 4b825dc642cb6eb9a060e54bf8d69288fbee4904..HEAD $ git grep -In "$(printf '\t') " Note: Unlike "space before tab in indent", the reverse ("space after tab in indent") is not reported by git. That is because spaces could be intentionally used for alignment or line continuation, but in some cases they are being used for indentation together with tabs and in others the formatting is misaligned. The second command was used to help find and fix these other issues.
Diffstat (limited to 'src/firecfg')
-rw-r--r--src/firecfg/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/firecfg/util.c b/src/firecfg/util.c
index dc24d4e68..4185b52dd 100644
--- a/src/firecfg/util.c
+++ b/src/firecfg/util.c
@@ -30,8 +30,8 @@ static int find(const char *program, const char *directory) {
30 30
31 struct stat s; 31 struct stat s;
32 if (stat(fname, &s) == 0) { 32 if (stat(fname, &s) == 0) {
33 if (arg_debug) 33 if (arg_debug)
34 printf("found %s in directory %s\n", program, directory); 34 printf("found %s in directory %s\n", program, directory);
35 retval = 1; 35 retval = 1;
36 } 36 }
37 37
@@ -44,8 +44,8 @@ static int find(const char *program, const char *directory) {
44int which(const char *program) { 44int which(const char *program) {
45 // check some well-known paths 45 // check some well-known paths
46 if (find(program, "/bin") || find(program, "/usr/bin") || 46 if (find(program, "/bin") || find(program, "/usr/bin") ||
47 find(program, "/sbin") || find(program, "/usr/sbin") || 47 find(program, "/sbin") || find(program, "/usr/sbin") ||
48 find(program, "/usr/games")) 48 find(program, "/usr/games"))
49 return 1; 49 return 1;
50 50
51 // check environment 51 // check environment