From c9ba7b8ae1064cd64894e98c09863123d81e8e12 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 22 Jun 2019 23:49:39 +0200 Subject: fix: always set permissions on symlinks to 0777 Signed-off-by: David Oberhollenzer --- lib/fstree/mknode.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/fstree') diff --git a/lib/fstree/mknode.c b/lib/fstree/mknode.c index 247e2b5..e4620f5 100644 --- a/lib/fstree/mknode.c +++ b/lib/fstree/mknode.c @@ -57,6 +57,7 @@ tree_node_t *fstree_mknode(fstree_t *fs, tree_node_t *parent, const char *name, strcpy(n->data.file->input_file, extra); break; case S_IFLNK: + n->mode = S_IFLNK | 0777; n->data.slink_target = (char *)n->payload; strcpy(n->data.slink_target, extra); break; -- cgit v1.2.3