diff options
author | 2023-02-19 14:26:15 -0300 | |
---|---|---|
committer | 2023-02-20 17:39:31 -0300 | |
commit | 490051f71494e828f2020257c012c3b28398d852 (patch) | |
tree | e565f37c36d9573dd9d95c2028361012f1132989 /src/fcopy | |
parent | .gitattributes: mark some binary files as such (diff) | |
download | firejail-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/fcopy')
-rw-r--r-- | src/fcopy/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcopy/main.c b/src/fcopy/main.c index f1deabf2e..da24fb3f7 100644 --- a/src/fcopy/main.c +++ b/src/fcopy/main.c | |||
@@ -236,7 +236,7 @@ void copy_link(const char *target, const char *linkpath, mode_t mode, uid_t uid, | |||
236 | // if the link is already there, don't create it | 236 | // if the link is already there, don't create it |
237 | struct stat s; | 237 | struct stat s; |
238 | if (lstat(linkpath, &s) == 0) | 238 | if (lstat(linkpath, &s) == 0) |
239 | return; | 239 | return; |
240 | 240 | ||
241 | char *rp = proc_pid_to_self(target); | 241 | char *rp = proc_pid_to_self(target); |
242 | if (rp) { | 242 | if (rp) { |