aboutsummaryrefslogtreecommitdiffstats
path: root/src/fcopy/main.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@protonmail.com>2023-02-24 20:50:25 -0500
committerLibravatar netblue30 <netblue30@protonmail.com>2023-02-24 20:50:25 -0500
commit71b98ed838910173ec56c977f4892fd9c53da339 (patch)
tree16b90ac1333137ffc4df4f50e152ade351c458c8 /src/fcopy/main.c
parentmerges (diff)
parentMerge pull request #5646 from NetSysFire/parsecd (diff)
downloadfirejail-71b98ed838910173ec56c977f4892fd9c53da339.tar.gz
firejail-71b98ed838910173ec56c977f4892fd9c53da339.tar.zst
firejail-71b98ed838910173ec56c977f4892fd9c53da339.zip
Merge branch 'master' of ssh://github.com/netblue30/firejail
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) {