aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/util.c
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/firejail/util.c
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/firejail/util.c')
-rw-r--r--src/firejail/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/util.c b/src/firejail/util.c
index 846c27321..bafcd69ec 100644
--- a/src/firejail/util.c
+++ b/src/firejail/util.c
@@ -1101,7 +1101,7 @@ void mkdir_attr(const char *fname, mode_t mode, uid_t uid, gid_t gid) {
1101 if (mkdir(fname, mode) == -1 || 1101 if (mkdir(fname, mode) == -1 ||
1102 chmod(fname, mode) == -1 || 1102 chmod(fname, mode) == -1 ||
1103 chown(fname, uid, gid)) { 1103 chown(fname, uid, gid)) {
1104 fprintf(stderr, "Error: failed to create %s directory\n", fname); 1104 fprintf(stderr, "Error: failed to create %s directory\n", fname);
1105 errExit("mkdir/chmod"); 1105 errExit("mkdir/chmod");
1106 } 1106 }
1107 1107