aboutsummaryrefslogtreecommitdiffstats
path: root/src/fcopy
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-11-18 10:09:26 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-11-18 10:09:26 -0500
commit4840712323d034e7452f63d6f747cc6a78d364c0 (patch)
tree4256005472125b6dd618c14058c2a60d07193c4e /src/fcopy
parentfcopy part 4 (diff)
downloadfirejail-4840712323d034e7452f63d6f747cc6a78d364c0.tar.gz
firejail-4840712323d034e7452f63d6f747cc6a78d364c0.tar.zst
firejail-4840712323d034e7452f63d6f747cc6a78d364c0.zip
cleanup
Diffstat (limited to 'src/fcopy')
-rw-r--r--src/fcopy/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fcopy/main.c b/src/fcopy/main.c
index e3a04a515..b1e2813db 100644
--- a/src/fcopy/main.c
+++ b/src/fcopy/main.c
@@ -102,6 +102,9 @@ static void mkdir_attr(const char *fname, mode_t mode, uid_t uid, gid_t gid) {
102} 102}
103 103
104void copy_link(const char *target, const char *linkpath, mode_t mode, uid_t uid, gid_t gid) { 104void copy_link(const char *target, const char *linkpath, mode_t mode, uid_t uid, gid_t gid) {
105 (void) mode;
106 (void) uid;
107 (void) gid;
105 char *rp = realpath(target, NULL); 108 char *rp = realpath(target, NULL);
106 if (rp) { 109 if (rp) {
107 if (symlink(rp, linkpath) == -1) 110 if (symlink(rp, linkpath) == -1)