aboutsummaryrefslogtreecommitdiffstats
path: root/src/fcopy/main.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-02-24 20:44:48 -0500
committerLibravatar GitHub <noreply@github.com>2023-02-24 20:44:48 -0500
commitd657245f7353f692c22db2801ac64f7d807eb415 (patch)
tree5494cbde66f9fb6220df8a72415a6160f130a6b9 /src/fcopy/main.c
parentMerge pull request #5677 from kmk3/print-failed-long-arg (diff)
parenteditorconfig: add indentation rules (diff)
downloadfirejail-d657245f7353f692c22db2801ac64f7d807eb415.tar.gz
firejail-d657245f7353f692c22db2801ac64f7d807eb415.tar.zst
firejail-d657245f7353f692c22db2801ac64f7d807eb415.zip
Merge pull request #5674 from kmk3/fix-ws-add-editorconfig
build: Fix whitespace and add .editorconfig
Diffstat (limited to 'src/fcopy/main.c')
-rw-r--r--src/fcopy/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fcopy/main.c b/src/fcopy/main.c
index f1deabf2e..ce2efb295 100644
--- a/src/fcopy/main.c
+++ b/src/fcopy/main.c
@@ -92,7 +92,7 @@ static void selinux_relabel_path(const char *path, const char *inside_path) {
92 printf("Cannot relabel %s: %s\n", path, strerror(errno)); 92 printf("Cannot relabel %s: %s\n", path, strerror(errno));
93 } 93 }
94 freecon(fcon); 94 freecon(fcon);
95 close: 95close:
96 close(fd); 96 close(fd);
97#else 97#else
98 (void) path; 98 (void) path;
@@ -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) {